code: def test_bbox_dim_error():
      data_3d = [[[1, 2, 3, 4]]]
      with pytest.raises(
          ValueError, match="Expected a 1D or 2D tensor, got 3D"
      ):
          tv_tensors.BoundingBoxes(
              data_3d, format="XYXY", canvas_size=(32, 32)
          )
  
imports: from copy import deepcopy
  import pytest
  import torch
  from common_utils import assert_equal, make_bounding_boxes, make_image, make_segmentation_mask, make_video
  from PIL import Image
  from torchvision import tv_tensors
label_desc: Use image node_id 5 for calling a global function with example usage: test_bbox_dim_error() without return types