#NEWLINE# @ lib . api_call #NEWLINE# def get_motor( self , name ) : #NEWLINE# #INDENT# if ( self . mode == 'power' ) : #NEWLINE# #INDENT# return self . motors [ self ] . power #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . motors [ name ] . velocity