def check_multiple_choice(option, opt, value):
    values = value.split(option.split_char)
    for v in values:
        if v not in option.mchoices:
            choices = ",".join(map(repr, option.mchoices))
            raise OptionValueError(
                "option %s: invalid choice: %r (choose from %s)"
                % (opt, v, choices))
    return values
dataset/ETHPy150Open biocore/pyqi/pyqi/core/interfaces/optparse/__init__.py/check_multiple_choice/original