code: def temp_image(height, width):
      random_image = torch.rand(height, width)
      with tempfile.NamedTemporaryFile(suffix=".jpg") as f:
          f.close()
          save_image(random_image, f.name)
          yield f.name
      os.unlink(f.name)
  
file_path: detectron2/projects/DensePose/tests/test_image_list_dataset.py
imports: import contextlib
  import os
  import tempfile
  import unittest
  import torch
  from torchvision.utils import save_image
  from densepose.data.image_list_dataset import ImageListDataset
  from densepose.data.transform import ImageResizeTransform
label_desc: Use image node_id 1 for calling a global function with example usage: temp_image(height, width) without return types