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 _error_location(self, msg, error=True):
      if hasattr(self, "_obj"):
          # we know where the docs came from:
          try:
              filename = inspect.getsourcefile(self._obj)
          except TypeError:
              filename = None
          msg = msg + f" in the docstring of {self._obj} in {filename}."
      if error:
          raise ValueError(msg)
      else:
          warn(msg)
  
imports: import inspect
  import textwrap
  import re
  import pydoc
  from warnings import warn
  from collections import namedtuple
  from collections.abc import Callable, Mapping
  import copy
  import sys
label_desc: Use image node_id 15 for calling the NumpyDocString obj's underlying member method code with example usage: obj._error_location(msg, error) without return types