#NEWLINE# def convert_T( T ) : #NEWLINE# #INDENT# num_rows = len ( T ) #NEWLINE# num_cols = len ( T [ 0 ] ) #NEWLINE# dims = [ num_rows , num_cols ] #NEWLINE# T = dict ( data = T , orientation = 'row_major' , dimensions = dims ) #NEWLINE# return T