def check_exists_and_enabled(name, cfg_file):
    engines = load_yaml(cfg_file)
    return engines and engines in name and engines[name]['enabled']
dataset/ETHPy150Open openstack/entropy/entropy/utils.py/check_exists_and_enabled/swapped operands of `in`