code: def smoke_test_torchvision_read_decode() -> None:
      img_jpg = read_image(
          str(
              SCRIPT_DIR
              / "assets"
              / "encode_jpeg"
              / "grace_hopper_517x606.jpg"
          )
      )
      if img_jpg.shape != (3, 606, 517):
          raise RuntimeError(
              f"Unexpected shape of img_jpg: {img_jpg.shape}"
          )
      img_png = read_image(
          str(
              SCRIPT_DIR
              / "assets"
              / "interlaced_png"
              / "wizard_low.png"
          )
      )
      if img_png.shape != (4, 471, 354):
          raise RuntimeError(
              f"Unexpected shape of img_png: {img_png.shape}"
          )
  
file_path: vision/test/smoke_test.py
imports: import sys
  from pathlib import Path
  import torch
  import torchvision
  from torchvision.io import decode_jpeg, read_file, read_image
  from torchvision.models import resnet50, ResNet50_Weights
label_desc: Use image node_id 2 for calling a global function with example usage: smoke_test_torchvision_read_decode() without return types