code: def test_load_data_from_tensors(
      input_data, input_targets, expected_frames_count
  ):
      datamodule = VideoClassificationData.from_tensors(
          train_data=input_data,
          train_targets=input_targets,
          batch_size=1,
      )
      _check_len_and_values(
          got=datamodule.labels, expected=input_targets
      )
      _check_frames(
          data=datamodule.train_dataset.data,
          expected_frames_count=expected_frames_count,
      )
  
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 5 for calling a global function with example usage: test_load_data_from_tensors(input_data, input_targets, expected_frames_count) without return types