human
Complete this python program:
def _generate_method(name, func):
assistant
#Here is the Python program you requested.

    """Generate a wrapper for calling a method.  Note the wrapper will only
    accept positional arguments.
    """
    source = _method_code_template.format(method=name)
    glbls = {}
    exec_(source, glbls)
    method = njit(glbls['method'])
    @wraps(func)
    def wrapper(*args, **kwargs):
        return method(*args, **kwargs)
    return wrapper