code: def create_output_tables(retrieve_scalars_dict):
      """Extract data from ClearML into format for tabulation."""
      data = []
      for graph_title, graph_values in retrieve_scalars_dict.items():
          graph_data = []
          for series, series_values in graph_values.items():
              graph_data.append(
                  (graph_title, series, *series_values.values())
              )
          data += graph_data
      return sorted(data, key=lambda output: (output[0], output[1]))
  
file_path: clearml/examples/cicd/task_stats_to_comment.py
imports: import json
  import os
  import pandas
  from clearml import Task
  from github3 import login
  from tabulate import tabulate
label_desc: Use image node_id 1 for calling a global function with example usage: create_output_tables(retrieve_scalars_dict) and returns: sorted