code: def store_results_json(
      benchmark_dir=None,
      algo_name=None,
      algo_time=None,
      n_gpus=None,
      scale=None,
  ):
      """
      Store all benchmark results in json files
      """
      benchmark_result = {}
      benchmark_result["funcName"] = algo_name
      benchmark_result["result"] = algo_time
      benchmark_result["argNameValuePairs"] = [
          ("scale", scale),
          ("ngpus", n_gpus),
      ]
  
      json_object = json.dumps(benchmark_result, indent=4)
  
      benchmark_dir_path = Path(benchmark_dir)
  
      with open(
          f"{benchmark_dir_path}/benchmark_result_scale_{scale}_ngpus_{n_gpus}_{algo_name}.json",
          "w",
      ) as outfile:
          outfile.write(json_object)
  
file_path: cugraph/benchmarks/cugraph/standalone/main.py
imports: import sys
  from cugraph.dask.common.mg_utils import get_visible_devices
  from reporting import generate_console_report, update_csv_report
  import cugraph_funcs
  import cugraph_dask_funcs
  from benchmark import BenchmarkRun
  import json
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: store_results_json(benchmark_dir, algo_name, algo_time, n_gpus, scale) without return types