code: def _get_subclasses(cls):
      # Depth-first traversal of all direct and indirect subclasses of cls
      to_visit = [cls]
      while to_visit:
          this = to_visit.pop()
          yield this
          to_visit += list(this.__subclasses__())
  
file_path: mars/mars/lib/tblib/pickling_support.py
imports: import sys
  from types import TracebackType
  from .None import Frame
  from .None import Traceback
label_desc: Use image node_id 5 for calling a global function with example usage: _get_subclasses(cls) without return types