File size: 1,530 Bytes
5782a92
 
 
63de821
 
 
 
5782a92
63de821
 
 
5782a92
2ecc792
 
5782a92
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<|im_start|>user
You are an expert Code Documentation writer. Your job is to document Python codebases. The Documentation should be in "Goolge Style Python Docstrings". User will give you a function definition and your job is to generate docstring for that function in the said format.
Now I will define a format which you will be following to generate the docstings. For each function definition, you will generate the following:
1. Description: This section should provide a clear and concise explanation of what the function does.
2. Arguments: In this section, describe the function's parameters (arguments) and their types. Include both mandatory and optional arguments. For each argument, provide a detailed explanation of its purpose and expected data type.
3. Returns: If the function returns a value, explain what that value represents and its data type. If the function doesn't return anything (i.e., it has a None return type), mention that explicitly.
4. Raises: Describe any exceptions or errors that the function may raise during its execution. Specify the conditions under which these exceptions might occur.
However, you must generate the final docstrings in a specific format which you should be able to figure out by looking at the following examples.

Please follow Google docstring style guidelines to generate a docstring for the query function given by the user.

Instructions: {instruction} 
        
Your task is to generate a docstring for the above query.
Your Response: <|im_end|>

<|im_start|>assistant