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: from __future__ import division, absolute_import, print_function
  import inspect
  import textwrap
  import re
  import pydoc
  from warnings import warn
  import collections
  import copy
  import sys
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