def flat_result_2_row(predictions):
  """ flat the mitosis prediction result into rows

  Args:
    predictions: a tuple of (slide_id, ROI, mitosis_num,
      mitosis_location_scores), where mitosis_location_scores is a list
      of tuples (r, c, score)
  Return:
    a list of tuples(slide_id, ROI, mitosis_num, r, c, score)
  """
  assert predictions is not None
  result = []
  slide_id, ROI, mitosis_num, mitosis_location_scores = predictions
  for r, c, score in mitosis_location_scores:
    result.append((slide_id, ROI, mitosis_num, r, c, score))
  return result