code: def get_list_of_videos(tmpdir, num_videos=5, sizes=None, fps=None):
      names = []
      for i in range(num_videos):
          if sizes is None:
              size = 5 * (i + 1)
          else:
              size = sizes[i]
          if fps is None:
              f = 5
          else:
              f = fps[i]
          data = torch.randint(
              0, 256, (size, 300, 400, 3), dtype=torch.uint8
          )
          name = os.path.join(tmpdir, f"{i}.mp4")
          names.append(name)
          io.write_video(name, data, fps=f)
  
      return names
  
imports: import contextlib
  import functools
  import itertools
  import os
  import pathlib
  import random
  import re
  import shutil
  import sys
  import tempfile
  import warnings
  from subprocess import CalledProcessError, check_output, STDOUT
  import numpy
  import PIL.Image
  import pytest
  import torch
  import torch.testing
  from PIL import Image
  from torch.testing._comparison import BooleanPair, NonePair, not_close_error_metas, NumberPair, TensorLikePair
  from torchvision import io, tv_tensors
  from torchvision.transforms._functional_tensor import _max_value
  from torchvision.transforms.v2.functional import to_image, to_pil_image
label_desc: Use image node_id 16 for calling a global function with example usage: get_list_of_videos(tmpdir, num_videos, sizes, fps) and returns: names