def get_golden_samples_indexes(
    dataset_name,
    dataset_dir=None,
    cfg=None,
    split=None,
    min_samples=5,
):
    """
    # Get Standard samples' indexes
    """
    if dataset_dir is None:
        assert cfg is not None
        dataset_dir = os.path.join(
            cfg.OUTPUT_PATH,
            "preprocess/{}_version".format(cfg.PREPROCESS_VERSION),
            dataset_name,
        )

    assert split is not None
    utt_file = os.path.join(dataset_dir, "{}.json".format(split))
    with open(utt_file, "r", encoding="utf-8") as f:
        samples = json.load(f)

    if "train" in split:
        golden_samples = GOLDEN_TRAIN_SAMPLES[dataset_name]
    if "test" in split:
        golden_samples = GOLDEN_TEST_SAMPLES[dataset_name]

    res = []
    for idx, utt in enumerate(samples):
        if utt["Uid"] in golden_samples:
            res.append(idx)

        if dataset_name == "cdmusiceval":
            if "_".join(utt["Uid"].split("_")[:2]) in golden_samples:
                res.append(idx)

    if len(res) == 0:
        res = [i for i in range(min_samples)]

    return res
# Get Standard samples' indexes
preprocessors/__init__.py