code: def _register_box(
      name: str, box_type: Type, force: bool = False
  ) -> None:
      """Register a box type.
  
      Args:
          name (str): The name of box type.
          box_type (type): Box mode class to be registered.
          force (bool): Whether to override an existing class with the same
              name. Defaults to False.
      """
      assert issubclass(box_type, BaseBoxes)
      name = name.lower()
  
      if not force and (
          name in box_types or box_type in _box_type_to_name
      ):
          raise KeyError(f"box type {name} has been registered")
      elif name in box_types:
          _box_type = box_types.pop(name)
          _box_type_to_name.pop(_box_type)
      elif box_type in _box_type_to_name:
          _name = _box_type_to_name.pop(box_type)
          box_types.pop(_name)
  
      box_types[name] = box_type
      _box_type_to_name[box_type] = name
  
file_path: mmdetection/mmdet/structures/bbox/box_type.py
imports: from typing import Callable, Optional, Tuple, Type, Union
  import numpy
  import torch
  from torch import Tensor
  from .base_boxes import BaseBoxes
label_desc: Use image node_id 1 for calling a global function with example usage: _register_box(name, box_type, force) without return types