code: def temp_encoded_tensors(num_frames: int, height=10, width=10):
      if not _TOPIC_VIDEO_AVAILABLE:
          return torch.randint(
              size=(3, num_frames, height, width), low=0, high=255
          )
      data = create_dummy_video_frames(num_frames, height, width)
      return thwc_to_cthw(data).to(torch.float32)
  
file_path: lightning-flash/tests/video/classification/test_data.py
imports: from typing import Union
  import pytest
  import torch
  from flash.core.utilities.imports import _TOPIC_VIDEO_AVAILABLE
  from flash.video.classification.data import VideoClassificationData
label_desc: Use image node_id 2 for calling a global function with example usage: temp_encoded_tensors(num_frames, height, width) and returns: thwc_to_cthw, torch