parameters: (name, func)
return_statement: return method
docstring: Turns a callable object (like a mock) into a real function
docstring_summary: Turns a callable object (like a mock) into a real function
docstring_tokens: Turns a callable object ( like a mock ) into a real function
function: def _get_method(name, func):
      "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
function_tokens: def _get_method ( name , func ) : def method ( self , * args , * * kw ) : return func ( self , * args , * * kw ) method . __name__ = name return method