code: def test(make_args, nnc=nnc_add, aten=torch.add):
      def setup(n):
          args = make_args(n)
          result_aten = aten(*args)
          result_nnc = nnc(*args)
          assert result_nnc.dtype == result_aten.dtype
          assert result_nnc.size() == result_aten.size()
          assert result_nnc.stride() == result_aten.stride()
          torch.testing.assert_close(result_aten, result_nnc)
          return (lambda: nnc(*args), lambda: aten(*args))
  
      return benchmark_loop(setup)
  
file_path: pytorch/functorch/benchmarks/operator_authoring.py
imports: import timeit
  from functools import partial
  import numpy
  import pandas
  import torch
  from functorch.compile import pointwise_operator
label_desc: Use image node_id 7 for calling a global function with example usage: test(make_args, nnc, aten) and returns: benchmark_loop, function,  function