code: def test_to_tv_tensor_reference(make_input, return_type):
      tensor = torch.rand((3, 16, 16), dtype=torch.float64)
      dp = make_input()
  
      with tv_tensors.set_return_type(return_type):
          tensor_to = tensor.to(dp)
  
      assert type(tensor_to) is (
          type(dp) if return_type == "TVTensor" else torch.Tensor
      )
      assert tensor_to.dtype is dp.dtype
      assert type(tensor) is torch.Tensor
  
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 10 for calling a global function with example usage: test_to_tv_tensor_reference(make_input, return_type) without return types