code: def test_backwards(make_args, nnc=nnc_add, aten=torch.add):
      def backwards_setup(n):
          args = make_args(n)
          (grad_var,) = (a for a in args if a.requires_grad)
          aten(*args).sum().backward()
          correct = grad_var.grad.clone()
          grad_var.grad.zero_()
          nnc(*args).sum().backward()
          torch.testing.assert_close(correct, grad_var.grad)
          return (
              lambda: nnc(*args).sum().backward(),
              lambda: aten(*args).sum().backward(),
          )
  
      return benchmark_loop(backwards_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 10 for calling a global function with example usage: test_backwards(make_args, nnc, aten) and returns: benchmark_loop, function,  function