def register(_id, callbacks, schemas, formats):
    ret = {}
    if 'calvinip' in schemas:
        try:
            import calvinip_transport
            f = calvinip_transport.CalvinTransportFactory(_id, callbacks)
            factories[_id] = f
            ret['calvinip'] = f
        except __HOLE__:
            traceback.print_exc()
    return ret
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/south/plugins/transports/calvinip/__init__.py/register