def security_group_rule_db(rule, id=None):
    attrs = rule.copy()
    if attrs in 'ip_protocol':
        attrs['protocol'] = attrs.pop('ip_protocol')
    return AttrDict(attrs)
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/api/openstack/compute/test_security_groups.py/security_group_rule_db/swapped operands of `in`