code: def temp_encoded_video(
      num_frames: int,
      fps: int,
      height=10,
      width=10,
      prefix=None,
      directory=None,
  ):
      """Creates a temporary lossless, mp4 video with synthetic content.
  
      Uses a context which deletes the video after exit.
  
      """
      # Lossless options.
      video_codec = "libx264rgb"
      options = {"crf": "0"}
      data = create_dummy_video_frames(num_frames, height, width)
      with tempfile.NamedTemporaryFile(
          prefix=prefix, suffix=".mp4", dir=directory
      ) as f:
          f.close()
          io.write_video(
              f.name,
              data,
              fps=fps,
              video_codec=video_codec,
              options=options,
          )
          yield f.name, thwc_to_cthw(data).to(torch.float32)
      os.unlink(f.name)
  
imports: import contextlib
  import os
  import tempfile
  from pathlib import Path
  from typing import Any
  import flash
  import pytest
  import torch
  from flash.core.data.io.input import DataKeys
  from flash.core.utilities.imports import _FIFTYONE_AVAILABLE, _TOPIC_VIDEO_AVAILABLE
  from flash.video import VideoClassificationData, VideoClassifier
  from pandas import DataFrame
  from torch import Tensor
  from torch.utils.data import SequentialSampler
  from tests.helpers.task_tester import TaskTester
  from tests.video.classification.test_data import create_dummy_video_frames, temp_encoded_tensors
label_desc: Use image node_id 1 for calling a global function with example usage: temp_encoded_video(num_frames, fps, height, width, prefix, directory) without return types