code: def test_clip_length_and_stride(self, ucsd_clips, n_frames, stride):
      # check clip length
      clip = ucsd_clips.get_item(0)
      assert clip["image"].shape[0] == n_frames
      assert clip["mask"].shape[0] == n_frames
      # check frames between clips
      next_clip = ucsd_clips.get_item(1)
      assert next_clip["frames"][0] - clip["frames"][0] == stride
  
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 the TestClipsIndexer obj's underlying member method code with example usage: obj.test_clip_length_and_stride(ucsd_clips, n_frames, stride) without return types