def _get_extractor(config_dict):
    """ Utility function, get an extract function for a single valid extractor name in config
        and error if more than one or none """
    extractor = None
    extract_config = None
    for key, value in config_dict.items():
        if EXTRACTORS in key:
            return parse_extractor(key, value)
    else:  # No valid extractor
        raise Exception(
            'No valid extractor name to use in input: {0}'.format(config_dict))
dataset/ETHPy150Open svanoort/pyresttest/pyresttest/validators.py/_get_extractor/swapped operands of `in`