<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _delegate(from_owner, to_owner, method):
 """Creates a method on from_owner to calls through to the same method on to_owner. :from_owner: the object to delegate to :to_owner: the owner on which to delegate from :methods: the method to delegate """

  dgate = lambda self, *args, **kwargs: getattr(getattr(self, to_owner), method)(*args, **kwargs)
  dgate.__name__ = method
  dgate.__doc__ = "Delegates to {0}.{1}: {2}".format(to_owner, method, method.__doc__)
  setattr(from_owner, method, dgate)