code: def find_descendents(cls):
      """
      A generator which yields all descendent classes of the given class
      (including the given class)
  
      Args:
          cls (Class): the class to find descendents of
      """
      yield cls
      for sub in cls.__subclasses__():
          for c in find_descendents(sub):
              yield c
  
file_path: featuretools/featuretools/utils/gen_utils.py
imports: import importlib
  import logging
  import re
  import sys
  from enum import Enum
  from tqdm import tqdm
label_desc: Use image node_id 3 for calling a global function with example usage: find_descendents(cls) without return types