code: def test_all_subclasses():
      class TestClass:
          pass
  
      subclasses = [
          type(f"Subclass{i}", (TestClass,), {}) for i in range(10)
      ]
      sub_subclasses = [
          type(f"Sub-subclass_{subclass.__name__}", (subclass,), {})
          for subclass in subclasses
      ]
  
      expected = subclasses + sub_subclasses
      assert (
          rasa.shared.utils.common.all_subclasses(TestClass) == expected
      )
  
imports: import asyncio
  from typing import Collection, List, Optional, Text
  from unittest.mock import Mock
  import pytest
  import rasa.shared.core.domain
  import rasa.shared.utils.common
  from rasa.shared.exceptions import RasaException
label_desc: Use image node_id 1 for calling a global function with example usage: test_all_subclasses() without return types