code: def get_filters(self, search_global=False):
      origin_scope = self._get_origin_scope()
      if search_global:
          position = self._position
  
          # For functions and classes the defaults don't belong to the
          # function and get evaluated in the context before the function. So
          # make sure to exclude the function/class name.
          if origin_scope is not None:
              ancestor = search_ancestor(
                  origin_scope, "funcdef", "classdef", "lambdef"
              )
              lambdef = None
              if ancestor == "lambdef":
                  # For lambdas it's even more complicated since parts will
                  # be evaluated later.
                  lambdef = ancestor
                  ancestor = search_ancestor(
                      origin_scope, "funcdef", "classdef"
                  )
              if ancestor is not None:
                  colon = ancestor.children[-2]
                  if position < colon.start_pos:
                      if (
                          lambdef is None
                          or position < lambdef.children[-2].start_pos
                      ):
                          position = ancestor.start_pos
  
          return get_global_filters(
              self._evaluator, self._context, position, origin_scope
          )
      else:
          return self._context.get_filters(
              search_global, self._position, origin_scope=origin_scope
          )
  
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 4 for calling the NameFinder obj's underlying member method code with example usage: obj.get_filters(search_global) and returns: get_global_filters, self