<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def all_subclasses(cls):
 """An iterator over all subclasses of `cls`."""

    for s in cls.__subclasses__():
      yield s
      for c in s.all_subclasses():
        yield c