code: def mock_video_csv_file(tmpdir):
      with mock_video_data_frame() as (data_frame, video_duration):
          csv_file = os.path.join(tmpdir, "data.csv")
          data_frame.to_csv(csv_file)
          yield csv_file, video_duration
  
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 3 for calling a global function with example usage: mock_video_csv_file(tmpdir) without return types