code: def test_out(make_args, out, nnc=nnc_add, aten=torch.add):
      def out_setup(n):
          args = make_args(n)
          result_aten = out(n)
          result_nnc = out(n)
          aten(*args, out=result_aten)
          nnc(*args, out=result_nnc)
          torch.testing.assert_close(result_aten, result_nnc)
          result = out(n)
          return (
              lambda: nnc(*args, out=result),
              lambda: aten(*args, out=result),
          )
  
      return benchmark_loop(out_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 9 for calling a global function with example usage: test_out(make_args, out, nnc, aten) and returns: benchmark_loop, function,  function