#NEWLINE# def recognize_batch( self , data , headers ) : #NEWLINE# #INDENT# self . validate_headers ( headers ) #NEWLINE# self . connect_to_worker ( data [ 'model' ] ) #NEWLINE# frame_rate = self . extract_frame_rate_from_headers ( headers ) #NEWLINE# response = self . recognize_batch_on_worker ( data , data ) #NEWLINE# return response