code: def test_get_box_type(self):
      @register_box("A")
      class A(ToyBaseBoxes):
          pass
  
      mode_name, mode_cls = get_box_type("A")
      self.assertEqual(mode_name, "a")
      self.assertIs(mode_cls, A)
      mode_name, mode_cls = get_box_type(A)
      self.assertEqual(mode_name, "a")
      self.assertIs(mode_cls, A)
  
      # get unregistered mode
      class B(ToyBaseBoxes):
          pass
  
      with self.assertRaises(AssertionError):
          mode_name, mode_cls = get_box_type("B")
      with self.assertRaises(AssertionError):
          mode_name, mode_cls = get_box_type(B)
  
file_path: mmdetection/tests/test_structures/test_bbox/test_box_type.py
imports: from unittest import TestCase
  from unittest.mock import MagicMock
  import torch
  from mmdet.structures.bbox.box_type import _box_type_to_name, box_converters, box_types, convert_box_type, get_box_type, register_box, register_box_converter
  from .utils import ToyBaseBoxes
label_desc: Use image node_id 5 for calling the TestBoxType obj's underlying member method code with example usage: obj.test_get_box_type() without return types