docstr: The path to a module/class/function definition.
docstr_tok: ["The","path","to","a","module\/class\/function","definition","."]
code: def _path(self):
      """The path to a module/class/function definition."""
  
      def to_reverse():
          name = self._name
          if name.api_type == "module":
              try:
                  name = list(name.infer())[0].name
              except IndexError:
                  pass
  
          if name.api_type in "module":
              module_contexts = name.infer()
              if module_contexts:
                  (module_context,) = module_contexts
                  for n in reversed(
                      module_context.py__name__().split(".")
                  ):
                      yield n
              else:
                  # We don't really know anything about the path here. This
                  # module is just an import that would lead in an
                  # ImportError. So simply return the name.
                  yield name.string_name
                  return
          else:
              yield name.string_name
  
          parent_context = name.parent_context
          while parent_context is not None:
              try:
                  method = parent_context.py__name__
              except AttributeError:
                  try:
                      yield parent_context.name.string_name
                  except AttributeError:
                      pass
              else:
                  for name in reversed(method().split(".")):
                      yield name
              parent_context = parent_context.parent_context
  
      return reversed(list(to_reverse()))
  
imports: import re
  from parso.python.tree import search_ancestor
  from jedi import settings
  from jedi.evaluate.utils import ignored, unite
  from jedi.cache import memoize_method
  from jedi.evaluate import imports
  from jedi.evaluate import compiled
  from jedi.evaluate.imports import ImportName
  from jedi.evaluate.context import instance
  from jedi.evaluate.context import ClassContext, FunctionExecutionContext
  from jedi.api.keywords import KeywordName
label_desc: Use image node_id 4 for calling the BaseDefinition obj's underlying member method code with example usage: obj._path() and returns: reversed