<s> import numbers <EOL> from ryu . base import app_manager <EOL> from . import event <EOL> def get_datapath ( app , dpid ) : <EOL> """<STR_LIT>""" <EOL> assert isinstance ( dpid , numbers . Integral ) <EOL> return app . send_request ( event . GetDatapathRequest ( dpid = dpid ) ) ( ) <EOL> def send_msg ( app , msg , reply_cls = None , reply_multi = False ) : <EOL> """<STR_LIT>""" <EOL> return app . send_request ( event . SendMsgRequest ( msg = msg , <EOL> reply_cls = reply_cls , <EOL> reply_multi = reply_multi ) ) ( ) <EOL> app_manager . require_app ( '<STR_LIT>' , api_style = True ) </s>
