class_docstr: An abstract class of a ``BoxMode``.
  
  A ``BoxMode`` is callable that converts box mode of ``boxes``, which are Nx4 (2D) or Nx6 (3D) torch tensor or ndarray.
  ``BoxMode`` has several subclasses that represents different box modes, including
  
  - :class:`~monai.data.box_utils.CornerCornerModeTypeA`:
    represents [xmin, ymin, xmax, ymax] for 2D and [xmin, ymin, zmin, xmax, ymax, zmax] for 3D
  - :class:`~monai.data.box_utils.CornerCornerModeTypeB`:
    represents [xmin, xmax, ymin, ymax] for 2D and [xmin, xmax, ymin, ymax, zmin, zmax] for 3D
  - :class:`~monai.data.box_utils.CornerCornerModeTypeC`:
    represents [xmin, ymin, xmax, ymax] for 2D and [xmin, ymin, xmax, ymax, zmin, zmax] for 3D
  - :class:`~monai.data.box_utils.CornerSizeMode`:
    represents [xmin, ymin, xsize, ysize] for 2D and [xmin, ymin, zmin, xsize, ysize, zsize] for 3D
  - :class:`~monai.data.box_utils.CenterSizeMode`:
    represents [xcenter, ycenter, xsize, ysize] for 2D and [xcenter, ycenter, zcenter, xsize, ysize, zsize] for 3D
  
  We currently define ``StandardMode`` = :class:`~monai.data.box_utils.CornerCornerModeTypeA`,
  and monai detection pipelines mainly assume ``boxes`` are in ``StandardMode``.
  
  The implementation should be aware of:
  
  - remember to define class variable ``name``,
    a dictionary that maps ``spatial_dims`` to :class:`~monai.utils.enums.BoxModeName`.
  - :func:`~monai.data.box_utils.BoxMode.boxes_to_corners` and :func:`~monai.data.box_utils.BoxMode.corners_to_boxes`
    should not modify inputs in place.
class_docstr_tok: ["An","abstract","class","of","a","``","BoxMode","``",".","A","``","BoxMode","``","is","callable","that","converts","box","mode","of","``","boxes","``",",","which","are","Nx4","(","2D",")","or","Nx6","(","3D",")","torch","tensor","or","ndarray",".","``","BoxMode","``","has","several","subclasses","that","represents","different","box","modes",",","including","-",":","class",":","`","~monai.data.box_utils.CornerCornerModeTypeA","`",":","represents","[","xmin",",","ymin",",","xmax",",","ymax","]","for","2D","and","[","xmin",",","ymin",",","zmin",",","xmax",",","ymax",",","zmax","]","for","3D","-",":","class",":","`","~monai.data.box_utils.CornerCornerModeTypeB","`",":","represents","[","xmin",",","xmax",",","ymin",",","ymax","]","for","2D","and","[","xmin",",","xmax",",","ymin",",","ymax",",","zmin",",","zmax","]","for","3D","-",":","class",":","`","~monai.data.box_utils.CornerCornerModeTypeC","`",":","represents","[","xmin",",","ymin",",","xmax",",","ymax","]","for","2D","and","[","xmin",",","ymin",",","xmax",",","ymax",",","zmin",",","zmax","]","for","3D","-",":","class",":","`","~monai.data.box_utils.CornerSizeMode","`",":","represents","[","xmin",",","ymin",",","xsize",",","ysize","]","for","2D","and","[","xmin",",","ymin",",","zmin",",","xsize",",","ysize",",","zsize","]","for","3D","-",":","class",":","`","~monai.data.box_utils.CenterSizeMode","`",":","represents","[","xcenter",",","ycenter",",","xsize",",","ysize","]","for","2D","and","[","xcenter",",","ycenter",",","zcenter",",","xsize",",","ysize",",","zsize","]","for","3D","We","currently","define","``","StandardMode","``","=",":","class",":","`","~monai.data.box_utils.CornerCornerModeTypeA","`",",","and","monai","detection","pipelines","mainly","assume","``","boxes","``","are","in","``","StandardMode","``",".","The","implementation","should","be","aware","of",":","-","remember","to","define","class","variable","``","name","``",",","a","dictionary","that","maps","``","spatial_dims","``","to",":","class",":","`","~monai.utils.enums.BoxModeName","`",".","-",":","func",":","`","~monai.data.box_utils.BoxMode.boxes_to_corners","`","and",":","func",":","`","~monai.data.box_utils.BoxMode.corners_to_boxes","`","should","not","modify","inputs","in","place","."]
docstr: Get the mode name for the given spatial dimension using class variable ``name``.
  
  Args:
      spatial_dims: number of spatial dimensions of the bounding boxes.
  
  Returns:
      ``str``: mode string name
code: def get_name(cls, spatial_dims: int) -> str:
      """
      Get the mode name for the given spatial dimension using class variable ``name``.
  
      Args:
          spatial_dims: number of spatial dimensions of the bounding boxes.
  
      Returns:
          ``str``: mode string name
      """
      return cls.name[spatial_dims].value
  
imports: from __future__ import annotations
  import inspect
  import warnings
  from abc import ABC, abstractmethod
  from collections.abc import Callable, Sequence
  from copy import deepcopy
  import numpy
  import torch
  from monai.config.type_definitions import NdarrayOrTensor, NdarrayTensor
  from monai.utils import look_up_option
  from monai.utils.enums import BoxModeName
  from monai.utils.type_conversion import convert_data_type, convert_to_dst_type
label_desc: Use image node_id 1 for calling the BoxMode obj's underlying member method code with example usage: obj.get_name(cls, spatial_dims) and returns: cls