human
Complete the below
def _get_method(name, func):

    ''''Turns a callable object (like a mock) into a real function'
    '''

Write me a the Python code you requested?
assistant
#Here is the Python code you requested.
    def method(self, *args, **kw):
        return func(self, *args, **kw)
    method.__name__ = name
    return method