code: def all_subclasses(cls):
      
      for subclass in cls.__subclasses__():
          yield subclass
          for subc in all_subclasses(subclass):
              yield subc
docs: Recursively generate of all the subclasses of class cls.