code: def _delegate(from_owner, to_owner, method):
    
    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)
docs: 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