code: def get_sorted_results(log_dir, metric):
      log_files = [
          f
          for f in os.listdir(log_dir)
          if os.path.isfile(os.path.join(log_dir, f))
      ]
  
      log_files_path = [os.path.join(log_dir, f) for f in log_files]
      results = get_results(log_files_path, metric)
      result_keys = list(results.keys())
      sorted_keys = sorted(result_keys)
      return sorted_keys, results
  
file_path: deepspeed/csrc/aio/py_test/parse_aio_stats.py
imports: import os
  import argparse
label_desc: Use image node_id 8 for calling a global function with example usage: get_sorted_results(log_dir, metric) and returns: sorted_keys,  results