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 sys
label_desc: Use image node_id 5 for calling the NumpyDocString obj's underlying member method code with example usage: obj._strip(doc) and returns: doc