code: def dis(
      x=None,
      *,
      file=None,
      depth=None,
      show_caches=False,
      adaptive=False,
  ):
      """Disassemble classes, methods, functions, and other compiled objects.
  
      With no argument, disassemble the last traceback.
  
      Compiled objects currently include generator objects, async generator
      objects, and coroutine objects, all of which store their code object
      in a special attribute.
      """
      if x is None:
          distb(file=file, show_caches=show_caches, adaptive=adaptive)
          return
      # 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
      # Perform the disassembly.
      if hasattr(x, "__dict__"):  # Class or module
          items = sorted(x.__dict__.items())
          for name, x1 in items:
              if isinstance(x1, _have_code):
                  print("Disassembly of %s:" % name, file=file)
                  try:
                      dis(
                          x1,
                          file=file,
                          depth=depth,
                          show_caches=show_caches,
                          adaptive=adaptive,
                      )
                  except TypeError as msg:
                      print("Sorry:", msg, file=file)
                  print(file=file)
      elif hasattr(x, "co_code"):  # Code object
          _disassemble_recursive(
              x,
              file=file,
              depth=depth,
              show_caches=show_caches,
              adaptive=adaptive,
          )
      elif isinstance(x, (bytes, bytearray)):  # Raw bytecode
          _disassemble_bytes(x, file=file, show_caches=show_caches)
      elif isinstance(x, str):  # Source code
          _disassemble_str(
              x,
              file=file,
              depth=depth,
              show_caches=show_caches,
              adaptive=adaptive,
          )
      else:
          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, _specializations, _specialized_instructions
label_desc: Use image node_id 2 for calling a global function with example usage: dis(x) without return types