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

    """Turns a callable object (like a mock) into a real function
    """
    def method(self, *args, **kw):
        return func(self, *args, **kw)
    method.__name__ = name
    return method