code: def main():
      parser = argparse.ArgumentParser()
      parser.add_argument("--op", default="add_op", dest="op", type=str)
      parser.add_argument(
          "--benchmark-c2-net",
          "--benchmark_c2_net",
          default=False,
          dest="benchmark_c2_net",
          action="store_true",
      )
      parser.add_argument(
          "--use-throughput-benchmark",
          "--use_throughput_benchmark",
          default=False,
          dest="use_throughput_benchmark",
          action="store_true",
      )
      parser.add_argument(
          "--debug", default=False, dest="debug", action="store_true"
      )
      parser.add_argument(
          "--save", default=False, dest="save", action="store_true"
      )
      parser.add_argument(
          "--eager-mode",
          "--eager_mode",
          default=False,
          dest="eager_mode",
          action="store_true",
      )
      parser.add_argument(
          "--num-warmup-iters",
          "--num_warmup_iters",
          type=int,
          default=100,
      )
      parser.add_argument(
          "--num-iters", "--num_iters", type=int, default=1000
      )
      args = parser.parse_args()
  
      if args.op not in SUPPORTED_OPS:
          print(
              f"Op {args.op} is not supported: Supported ops are:{SUPPORTED_OPS}"
          )
          return
      assert not (
          args.benchmark_c2_net and args.use_throughput_benchmark
      ), "Benchmarking of C2 net via throughput benchmarking is not yet supported"
  
      num_warmup_iters = args.num_warmup_iters
      num_iters = args.num_iters
      config = BenchmarkConfig(num_warmup_iters, num_iters)
      graph_mode = True
      if args.eager_mode:
          graph_mode = False
      result = {}
      if args.op == "add_op":
          num_params = 2
          if args.benchmark_c2_net:
              module_config = ModuleConfig(
                  None, "Sum", num_params, None
              )
          else:
              module_config = ModuleConfig(
                  add_tensors_loop, None, num_params, graph_mode
              )
          benchmark_simple_fn(
              args, config, module_config, SimpleAddModule, result
          )
      print_results(result)
  
file_path: pytorch/benchmarks/framework_overhead_benchmark/framework_overhead_benchmark.py
imports: import argparse
  from C2Module import C2SimpleNet
  from pt_wrapper_module import WrapperModule
  from SimpleAddModule import add_tensors_loop, SimpleAddModule
  from utils import benchmark_module, BenchmarkConfig, ModuleConfig, ms_to_us
label_desc: Use image node_id 4 for calling a global function with example usage: main() without return types