class_docstr: Parses a numpydoc string to an abstract representation
  
  Instances define a mapping from section title to structured data.
class_docstr_tok: ["Parses","a","numpydoc","string","to","an","abstract","representation","Instances","define","a","mapping","from","section","title","to","structured","data","."]
code: def _strip(self, doc):
      i = 0
      j = 0
      for i, line in enumerate(doc):
          if line.strip():
              break
  
      for j, line in enumerate(doc[::-1]):
          if line.strip():
              break
  
      return doc[i : len(doc) - j]
  
imports: import inspect
  import textwrap
  import re
  import pydoc
  from warnings import warn
  import collections
  import copy
label_desc: Use image node_id 7 for calling the NumpyDocString obj's underlying member method code with example usage: obj._strip(doc) and returns: doc