#NEWLINE# def _label_to_int( labels ) : #NEWLINE# #INDENT# categories = [ 'airplane' , 'automobile' , 'bird' , 'cat' , 'deer' , 'dog' , 'frog' , 'horse' , 'ship' , 'truck' ] #NEWLINE# new_labels = [ ] #NEWLINE# for label in labels : #NEWLINE# #INDENT# new_labels . append ( categories . index ( label [ 1 ] ) ) #NEWLINE# #UNINDENT# return categories