code: def convert_durations(metric):
      
      if metric[0] == 'avgSessionDuration' and metric[1]:
          new_metric = (metric[0], metric[1] * 1000)
      else:
          new_metric = metric
      return new_metric
docs: Convert session duration metrics from seconds to milliseconds.