code: def to_method(func):
      
      @functools.wraps(func)
      def wrapper(*args, **kwargs):
          """Wrapper function.
          """
          return func(*args[1:], **kwargs)
  
      return wrapper
docs: Lift :func:`func` to a method; it will be called with the first argument
      'self' ignored.
  
      :param func: Any callable object