def METHOD_NAME(self, video_list: List[str], annotations_dir: str, fold: int, train: bool) -> List[int]:
    target_tag = self.TRAIN_TAG if train else self.TEST_TAG
    split_pattern_name = f"*test_split{fold}.txt"
    split_pattern_path = os.path.join(annotations_dir, split_pattern_name)
    annotation_paths = glob.glob(split_pattern_path)
    selected_files = set()
    for filepath in annotation_paths:
        with open(filepath) as fid:
            lines = fid.readlines()
        for line in lines:
            video_filename, tag_string = line.split()
            tag = int(tag_string)
            if tag == target_tag:
                selected_files.add(video_filename)
    indices = []
    for video_index, video_path in enumerate(video_list):
        if os.path.basename(video_path) in selected_files:
            indices.append(video_index)
    return indices