code: def _get_origin_scope(self):
      if isinstance(self._name, tree.Name):
          scope = self._name
          while scope.parent is not None:
              # TODO why if classes?
              if not isinstance(scope, tree.Scope):
                  break
              scope = scope.parent
          return scope
      else:
          return None
  
imports: from parso.python import tree
  from parso.tree import search_ancestor
  from jedi import debug
  from jedi import settings
  from jedi.evaluate.context import AbstractInstanceContext
  from jedi.evaluate import compiled
  from jedi.evaluate import analysis
  from jedi.evaluate import flow_analysis
  from jedi.evaluate.arguments import TreeArguments
  from jedi.evaluate import helpers
  from jedi.evaluate.context import iterable
  from jedi.evaluate.filters import get_global_filters, TreeNameDefinition
  from jedi.evaluate.base_context import ContextSet
  from jedi.parser_utils import is_scope, get_parent_scope
label_desc: Use image node_id 3 for calling the NameFinder obj's underlying member method code with example usage: obj._get_origin_scope() and returns: scope, None