code: def test_bbox_instance(data, format):
      bboxes = tv_tensors.BoundingBoxes(
          data, format=format, canvas_size=(32, 32)
      )
      assert isinstance(bboxes, torch.Tensor)
      assert bboxes.ndim == 2 and bboxes.shape[1] == 4
      if isinstance(format, str):
          format = tv_tensors.BoundingBoxFormat[(format.upper())]
      assert bboxes.format == format
  
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 4 for calling a global function with example usage: test_bbox_instance(data, format) without return types