def check_endpoint(endpoint, check_native_endpoint=None):
    if type(endpoint) != dict:
        check_native_endpoint(endpoint)
    else:
        if 'type' not in endpoint:
            raise RuntimeError('missing type in endpoint')
        if endpoint['type'] not in ['tcp', 'unix']:
            raise RuntimeError('invalid type "{}" in endpoint'.format(endpoint['type']))

        if endpoint['type'] == 'tcp':
            pass
        elif endpoint['type'] == 'unix':
            pass
        else:
            assert(False), 'should not arrive here'
Check a WAMP connecting endpoint configuration.
dataset/ETHPy150Open crossbario/autobahn-python/autobahn/wamp/component.py/check_endpoint