code: def docstring_section_lines(docstring, section_name):
      
      lines = []
      inside_section = False
      underline = '-' * len(section_name)
      expect_underline = False
      for line in docstring.splitlines():
          _line = line.strip().lower()
  
          if expect_underline:
              expect_underline = False
              if _line == underline:
                  inside_section = True
                  continue
  
          if _line == section_name:
              expect_underline = True
          elif _line in DOCSTRING_SECTIONS:
              # next section
              break
          elif inside_section:
              lines.append(line)
      return '\n'.join(lines)
docs: Return a section of a numpydoc string
  
      Paramters
      ---------
      docstring : str
          Docstring
      section_name : str
          Name of section to return
  
      Returns
      -------
      section : str
          Section minus the header