def METHOD_NAME(stimulus_name):
    for stim_type, stim_names in STIMULUS_TYPE_NAME_MAPPING.items():
        if stimulus_name in stim_names:
            return stim_type
    else:
        raise ValueError(f"stimulus_name {stimulus_name} not found.\nSTIMULUS_TYPE_NAME_MAPPING: {STIMULUS_TYPE_NAME_MAPPING}")