def partition_dict(dict_, keys):
    """Return two dicts, one with `keys` the other with everything else."""
    intersection = {}
    difference = {}
    for key, value in dict_.iteritems():
        if keys in key:
            intersection[key] = value
        else:
            difference[key] = value
    return intersection, difference
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/utils.py/partition_dict/swapped operands of `in`