code: def get_metric(file, metric):
      thread_count = get_thread_count(file)
      with open(file) as f:
          for line in f.readlines():
              if line.startswith(METRIC_SEARCH[metric]):
                  if metric in [READ_SPEED, WRITE_SPEED]:
                      fields = line.split()
                      return float(fields[-2])
                  else:
                      fields = line.split("=")
                      return float(fields[-1])
  
      return None
  
file_path: DeepSpeed/deepspeed/ops/csrc/aio/py_test/parse_aio_stats.py
imports: import os
  import argparse
label_desc: Use image node_id 5 for calling a global function with example usage: get_metric(file, metric) and returns: None, float, float