code: def ucsd_dataset(split):
      root = get_dataset_path(dataset="ucsd")
      transform = get_transforms(image_size=(256, 256))
      dataset = UCSDpedDataset(
          task=TaskType.CLASSIFICATION,
          root=Path(root),
          category="UCSDped2",
          transform=transform,
          clip_length_in_frames=16,
          frames_between_clips=1,
          split=split,
      )
      dataset.setup()
      return dataset
  
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 2 for calling a global function with example usage: ucsd_dataset(split) and returns: dataset