code: def appender(defaultdocs, passed_to=None):
      
  
      def _doc(func):
          params = inspect.signature(func).parameters
          params = [param.name for param in params.values()]
          msg = "\n**kwargs : passed to `%s`"
          params = "".join(
              [
                  textwrap.dedent(defaultdocs.get(param, msg % passed_to))
                  for param in params
              ]
          )
          func.__doc__ += "\n\nParameters\n" + 10 * "=" + params
          return func
  
      return _doc
docs: Decorator for appending commonly used parameter definitions.
  
      Useful in cases where functions repeatedly use the same parameters.  (But
      where a class implementation is not appropriate.)
  
      `defaultdocs` -> dict, format as shown in Example below, with keys being
      parameters and values being descriptions.
  
      Example
      -------
      ddocs = {
  
          'a' :
          '''
          a : int, default 0
              the first parameter
          ''',
  
          'b' :
          '''
          b : int, default 1
              the second parameter
          '''
          }
  
      @appender(ddocs)
      def f(a, b):
          '''Title doc.'''
          # Params here
          pass