human
Complete the below
def arg_to_array(func):

    ''''Decorator to convert argument to array.
    Parameters
    func : function
    The function to decorate.
    Returns
    func : function
    The decorated function.'
    '''
 Give me a the Python program you requested?
assistant
#Here is the Python program you requested.
    def fn(self, arg, *args, **kwargs):
        'Function\n\n                                Parameters\n                                ----------\n                                arg    :    array-like\n                                                Argument    to    convert.\n                                *args    :    tuple\n                                                Arguments.\n                                **kwargs    :    dict\n                                                Keyword    arguments.\n\n                                Returns\n                                -------\n                                value    :    object\n                                                The    return    value    of    the    function.\n                                '
        return func(self, np.array(arg), *args, **kwargs)
    return fn