def get_datapath(app, dpid):
 assert isinstance(dpid, numbers.Integral)
 return app.send_request(event.GetDatapathRequest(dpid=dpid))()

def get_datapath ( app , dpid ) : assert isinstance ( dpid , numbers . Integral ) return app . send_request ( event . GetDatapathRequest ( dpid = dpid ) ) ( )
get datapath object by dpid .