#NEWLINE# def convert_durations( metric ) : #NEWLINE# #INDENT# '\n    Convert session duration metrics from seconds to milliseconds.\n    ' #NEWLINE# if ( ( metric [ 0 ] == 'avgSessionDuration' ) and new_metric [ 1 ] ) : #NEWLINE# #INDENT# new_metric = ( metric [ 0 ] , ( metric [ 1 ] * 1000 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# new_metric = metric #NEWLINE# #UNINDENT# return new_metric