def METHOD_NAME(metrics, output_file):
    """Save the recommendation data into a csv.
  Args:
    metrics: Recommendation data
    output_file: Location of output file
  """
    fields = [
        "Metric Description", "Resource", "Service Accounts", "Users", "Groups",
        "Total"
    ]
    columns = ",".join(fields) + "\n"
    with open(output_file, "w") as f:
        f.write(columns)
        metric_name = "Number of active recommendation"
        for metric in metrics:
            project_id = "projects/" + metric["project_id"]
            stats = list(metric["stats"].values())
            combine_stats = sum(stats)
            row = ",".join(
                [metric_name, project_id, *map(str, stats),
                 str(combine_stats)]) + "\n"
            f.write(row)