def convert_durations(metric):
if metric[<NUM_LIT:0>] == '<STR_LIT>' and metric[<NUM_LIT:1>]:<EOL><INDENT>new_metric = (metric[<NUM_LIT:0>], metric[<NUM_LIT:1>] * <NUM_LIT:1000>)<EOL><DEDENT>else:<EOL><INDENT>new_metric = metric<EOL><DEDENT>return new_metric<EOL>
Convert session duration metrics from seconds to milliseconds.