def ProcessConfig(**kwargs):
    if 'file' not in kwargs:
        raise InvalidArgumentError('"file" parameter not found among kwargs')

    ext_to_config = {
        '.json': config_json.ConfigExpander,
        '.jsonnet': config_jsonnet.ConfigExpander,
        '.py': config_py.ConfigExpander,
    }

    filename = kwargs['file']
    for ext, config in ext_to_config.iteritems():
        if filename.endswith(ext):
            return config(**kwargs).ExpandFile(filename)

    raise InvalidConfigFilename(
        filename % 'Unrecognized extension in file: %s')
dataset/ETHPy150Open mbrukman/cloud-launcher/src/config.py/ProcessConfig/swapped operands of `%`