code: def test_should_register_subclass(self):
      # Given
      class MyBaseClass(Registrable):
          pass
  
      # pylint:disable=unused-variable
      @MyBaseClass.register("first_subclass")
      class MyFirstSubclass(MyBaseClass):
          pass
  
      @MyBaseClass.register("second_subclass")
      class MySecondSubclass(MyBaseClass):
          pass
  
      # pylint:enable=unused-variable
  
      # When
      my_subclass = MyBaseClass.by_name("second_subclass")
  
      # Then
      self.assertEqual(MySecondSubclass, my_subclass)
  
file_path: snips-nlu/snips_nlu/tests/test_registrable.py
imports: from unittest import TestCase
  from snips_nlu.common.registrable import Registrable
  from snips_nlu.exceptions import NotRegisteredError, AlreadyRegisteredError
label_desc: Use image node_id 1 for calling the TestRegistrable obj's underlying member method code with example usage: obj.test_should_register_subclass() without return types