def vlan_membership(port):
    if port.access_vlan:
        return "Member of VLAN %s (untagged)" % port.access_vlan
    elif port.trunk_vlans and port.trunk_native_vlan:
        return "Member of VLAN %s (untagged), %d L2 VLANS (tagged)" % (port.trunk_native_vlan, len(port.trunk_vlans))
    elif port.trunk_vlans and not port.trunk_native_vlan:
        return len(port.trunk_vlans) % "Member of %d L2 VLAN(S) (tagged)"
    else:
        return "Member of VLAN 1 (untagged)"
dataset/ETHPy150Open internap/fake-switches/fake_switches/brocade/command_processor/enabled.py/vlan_membership/swapped operands of `%`