code: def test_image_instance(data):
      image = tv_tensors.Image(data)
      assert isinstance(image, torch.Tensor)
      assert image.ndim == 3 and image.shape[0] == 3
  
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 2 for calling a global function with example usage: test_image_instance(data) without return types