code: def register_main(subparser) -> "None":
      parser = subparser.add_parser(
          "compare",
          help="Compare Hail benchmarks.",
          description="Run Hail benchmarks.",
      )
      parser.add_argument(
          "run1", type=str, help="First benchmarking run."
      )
      parser.add_argument(
          "run2", type=str, help="Second benchmarking run."
      )
      parser.add_argument(
          "--min-time",
          type=float,
          default=1.0,
          help="Minimum runtime in either run for inclusion.",
      )
      parser.add_argument(
          "--metric",
          type=str,
          default="median",
          choices=["best", "median"],
          help="Comparison metric.",
      )
      parser.set_defaults(main=compare)
  
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 7 for calling a global function with example usage: register_main(subparser) without return types