code: def load_file(path):
      if path.endswith(".json"):
          with open(path, "r") as f:
              js_data = json.load(f)
      elif path.endswith(".tsv"):
          import pandas as pd
  
          js_data = pd.read_table(path).to_json(orient="records")
      else:
          raise ValueError(f"unknown format: {os.path.basename(path)}")
  
      return {x["name"]: x for x in js_data["benchmarks"]}
  
file_path: hail/benchmark/python/benchmark_hail/compare.py
imports: import json
  import os
  import sys
  import math
  from scipy.stats.mstats import gmean, hmean
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: load_file(path) and returns: unknown