code: def restore_tensor_return_type():
      # This is for security, as we should already be restoring the default manually in each test anyway
      # (at least at the time of writing...)
      yield
      tv_tensors.set_return_type("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 1 for calling a global function with example usage: restore_tensor_return_type() without return types