code: def organize_tests(filename):
      tests = {}
      with open(filename) as f:
          df = json.load(f)
          for idx, row in enumerate(df["benchmarks"]):
              test_name = row["name"]
              test_name_split = test_name.split("/")
              if test_name_split[-1] == "process_time":
                  test_name_split = test_name_split[:-1]
  
              base_name = test_name_split[0]
              args = test_name_split[1:]
              if base_name not in tests.keys():
                  tests[base_name] = Test()
  
              tests[base_name].times.append(row["rows/sec"])
  
              if len(args) > 3:
                  raise (
                      "Test can have at most 3 parameters! Found",
                      len(args),
                      "in test",
                      test_name,
                  )
  
              nonnamed_args = [x for x in args if ":" not in x]
              if len(nonnamed_args) > 1:
                  raise (
                      "Test name must have only one non-named parameter! Found",
                      len(nonnamed_args),
                      "in test",
                      test_name,
                  )
  
              for arg in args:
                  arg_name = ""
                  arg_value = arg.strip('"')
                  if ":" in arg:
                      arg_split = arg.split(":")
                      arg_name = arg_split[0]
                      arg_value = arg_split[1].strip('"')
  
                  arg_value = try_as_numeric(arg_value)
                  if arg_name not in tests[base_name].args.keys():
                      tests[base_name].args[arg_name] = [arg_value]
                  else:
                      tests[base_name].args[arg_name].append(arg_value)
      return tests
  
file_path: arrow/cpp/src/arrow/acero/hash_join_graphs.py
imports: import math
  import sys
  import json
  import matplotlib.pyplot
  import seaborn
label_desc: Use image node_id 3 for calling a global function with example usage: organize_tests(filename) and returns: tests