code: def ucsd_clips(n_frames, stride, split=Split.TEST):
      """Create Folder Dataset."""
      root = get_dataset_path(dataset="ucsd")
      path = Path(root) / "UCSDped2"
      samples = make_ucsd_dataset(path=path, split=split)
      clips = UCSDpedClipsIndexer(
          video_paths=samples.image_path,
          mask_paths=samples.mask_path,
          clip_length_in_frames=n_frames,
          frames_between_clips=stride,
      )
      return clips
  
file_path: anomalib/tests/pre_merge/datasets/test_video.py
imports: from pathlib import Path
  import pytest
  from anomalib.data import TaskType
  from anomalib.data.base.video import VideoTargetFrame
  from anomalib.data.ucsd_ped import UCSDpedClipsIndexer, UCSDpedDataset, make_ucsd_dataset
  from anomalib.data.utils import get_transforms
  from anomalib.data.utils.split import Split, random_split
  from tests.helpers.dataset import get_dataset_path
label_desc: Use image node_id 1 for calling a global function with example usage: ucsd_clips(n_frames, stride, split) and returns: clips