code: def subclasses(cls: Type[Any]) -> Iterable[Type[Any]]:
      """
      Generator that returns all (not just direct) subclasses of `cls`
      """
      for subclass in cls.__subclasses__():
          yield from subclasses(subclass)
          yield subclass
  
imports: import os
  from typing import Any, Iterable, List, Sequence, Type, TypeVar
label_desc: Use image node_id 3 for calling a global function with example usage: subclasses(cls) without return types