code: def test_inplace(make_args, nnc=nnc_add, aten=torch.add):
      def inplace_setup(n):
          a, b = make_args(n)
          result_aten = torch.clone(a)
          result_nnc = torch.clone(a)
          nnc(result_nnc, b, out=result_nnc)
          aten(result_aten, b, out=result_aten)
          torch.testing.assert_close(result_aten, result_nnc)
          return (lambda: nnc(a, b, out=a), lambda: aten(a, b, out=a))
  
      return benchmark_loop(inplace_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 8 for calling a global function with example usage: test_inplace(make_args, nnc, aten) and returns: benchmark_loop, function,  function