def __init__(self, identity, endpoint, service_type=None):
        assert type(identity) is str, 'NSA identity type must be string (type: %s, value %s)' % (type(identity), identity)
        assert type(endpoint) is str, (type(endpoint), endpoint) % 'NSA endpoint type must be string (type: %s, value %s)'
        self.identity = identity
        self.endpoint = endpoint.strip()
        self.service_type = service_type
dataset/ETHPy150Open NORDUnet/opennsa/opennsa/nsa.py/NetworkServiceAgent.__init__/swapped operands of `%`