code: def _get_bbox_dim(detection):
      if all(
          getattr(detection, a, None) is not None
          for a in ("dimensions", "location", "rotation")
      ):
          return 3
  
      return 2
  
imports: import contextlib
  import itertools
  import logging
  import numpy
  import scipy.spatial
  import eta.core.numutils
  import eta.core.utils
  import fiftyone.core.labels
  import fiftyone.core.utils
  import fiftyone.core.validation
  from .utils3d import compute_cuboid_iou
label_desc: Use image node_id 11 for calling a global function with example usage: _get_bbox_dim(detection) and returns: int, int