code: def append_docstring(docstring, *lines):
      
      shallowest = get_minimum_indent(docstring)
      appender = []
      for line in lines:
          appender.append('\n')
          if line.strip():
              appender.append(shallowest)
              appender.append(line)
      return docstring + ''.join(appender)
docs: Appends the ``docstring`` with given ``lines``::
  
          function.__doc__ = append_docstring(
              function.__doc__,
              '.. note::'
              '',
              '   Appended docstring!'
          )
  
      :param docstring: a docstring to be appended
      :param \*lines: lines of trailing docstring
      :returns: new docstring which is appended
      :rtype: :class:`str`