code: def generate_c2_gradient_test(configs, c2_bench_op):
      """This function creates Caffe2 op test based on the given operator"""
      return _register_test(
          configs, c2_bench_op, create_caffe2_op_test_case, True
      )
  
imports: from collections import namedtuple
  import benchmark_utils
  from benchmark_test_generator import _register_test
  from caffe2.proto import caffe2_pb2
  from caffe2.python import core, workspace
  from .benchmark_core import TestConfig
label_desc: Use image node_id 4 for calling a global function with example usage: generate_c2_gradient_test(configs, c2_bench_op) and returns: _register_test