code: def _get_safe_image_name(name):
      # Used when we need to change the pytest "id" for an "image path" parameter.
      # If we don't, the test id (i.e. its name) will contain the whole path to the image, which is machine-specific,
      # and this creates issues when the test is running in a different machine than where it was collected
      # (typically, in fb internal infra)
      return name.split(os.path.sep)[-1]
  
imports: import glob
  import io
  import os
  import sys
  from pathlib import Path
  import numpy
  import pytest
  import torch
  import torchvision.transforms.functional
  from common_utils import assert_equal, needs_cuda
  from PIL import __version__, Image
  from torchvision.io.image import _read_png_16, decode_image, decode_jpeg, decode_png, encode_jpeg, encode_png, ImageReadMode, read_file, read_image, write_file, write_jpeg, write_png
label_desc: Use image node_id 1 for calling a global function with example usage: _get_safe_image_name(name) and returns: name