code: def test_indexing(self, ucsd_dataset):
      # check if clips are indexed at setup
      assert isinstance(ucsd_dataset.indexer, UCSDpedClipsIndexer)
      # check if clips are re-indexed after splitting
      split0, split1 = random_split(ucsd_dataset, 0.5)
      assert len(split0) + len(split1) == len(ucsd_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 1 for calling the TestVideoDataset obj's underlying member method code with example usage: obj.test_indexing(ucsd_dataset) without return types