code: def _get_code_object(x):
      """Helper to handle methods, compiled or raw code objects, and strings."""
      # Extract functions from methods.
      if hasattr(x, "__func__"):
          x = x.__func__
      # Extract compiled code objects from...
      if hasattr(x, "__code__"):  # ...a function, or
          x = x.__code__
      elif hasattr(x, "gi_code"):  # ...a generator object, or
          x = x.gi_code
      elif hasattr(
          x, "ag_code"
      ):  # ...an asynchronous generator object, or
          x = x.ag_code
      elif hasattr(x, "cr_code"):  # ...a coroutine.
          x = x.cr_code
      # Handle source code.
      if isinstance(x, str):
          x = _try_compile(x, "<disassembly>")
      # By now, if we don't have a code object, we can't disassemble x.
      if hasattr(x, "co_code"):
          return x
      raise TypeError(
          "don't know how to disassemble %s objects" % type(x).__name__
      )
  
imports: import sys
  import types
  import collections
  import io
  from opcode import *
  from opcode import __all__, _cache_format, _inline_cache_entries, _nb_ops, _intrinsic_1_descs, _intrinsic_2_descs, _specializations, _specialized_opmap
label_desc: Use image node_id 5 for calling a global function with example usage: _get_code_object(x) and returns: x