def register_service(service):
 frame = inspect.currentframe()
 m_name = frame.f_back.f_globals['__name__']
 m = sys.modules[m_name]
 m._SERVICE_NAME = service

def register_service ( service ) : frame = inspect . currentframe ( ) m_name = frame . f_back . f_globals [ '__name__' ] m = sys . modules [ m_name ] m . _SERVICE_NAME = service
register the ryu application specified by service as a provider of events defined in the calling module .