docs: def dedent(func):
      """
      Dedent the docstring of a function and substitute with :attr:`params`
  
      Parameters
      ----------
      func: function
          function with the documentation to dedent"""
      if isinstance(func, types.MethodType) and not six.PY3:
          func = func.im_func
      func.__doc__ = func.__doc__ and dedents(func.__doc__)
      return func