human
Solve the following python programming problem given the following code:
def _generate_method(name, func) : 
    '
    Generate a wrapper for calling a method
    ' 
    argspec = inspect.getargspec (name) 
    assert (not argspec.varargs), 'varargs not supported' 
    assert (not argspec.keywords), 'keywords not supported' 
    assert (not argspec.defaults), 'defaults not supported' 
    args = ', '.join (argspec.args [1 :]) 
    source = _method_code_template.format (method = name, args = args) 
    glbls = { 
        
} 
    exec_ (source, glbls) 
    method = njit (glbls ['method']) 
    @ wraps (func) 
    def wrapper(* args, **kwargs) : 
        return method (* args, ** kwargs) 
return wrapper 

    
    

    Fix the buggy line: argspec = inspect.getargspec (name)
assistant
#Here is Python program to fix the buggy line: argspec = inspect.

argspec = inspect.getargspec (func)