code: def _get_object_to_check(python_object):
      """Check if inspect.getfile has a chance to find the source."""
      if (
          inspect.ismodule(python_object)
          or inspect.isclass(python_object)
          or inspect.ismethod(python_object)
          or inspect.isfunction(python_object)
          or inspect.istraceback(python_object)
          or inspect.isframe(python_object)
          or inspect.iscode(python_object)
      ):
          return python_object
  
      try:
          return python_object.__class__
      except AttributeError:
          raise TypeError
  
imports: import inspect
  import os
  from jedi.parser_utils import get_cached_code_lines
  from jedi import settings
  from jedi.evaluate import compiled
  from jedi.cache import underscore_memoization
  from jedi.evaluate import imports
  from jedi.evaluate.base_context import Context, ContextSet
  from jedi.evaluate.context import ModuleContext
  from jedi.evaluate.cache import evaluator_function_cache
  from jedi.evaluate.compiled.getattr_static import getattr_static
  from jedi.evaluate.compiled.access import compiled_objects_cache
  from jedi.evaluate.compiled.context import create_cached_compiled_object
label_desc: Use image node_id 2 for calling a global function with example usage: _get_object_to_check(python_object) and returns: python_object, python_object