code: def generate_pt_gradient_test(configs, pt_bench_op):
      """This function creates PyTorch op test based on the given operator"""
      _register_test(
          configs, pt_bench_op, create_pytorch_op_test_case, True
      )
  
imports: from benchmark_core import _register_test
  from benchmark_pytorch import create_pytorch_op_test_case
label_desc: Use image node_id 2 for calling a global function with example usage: generate_pt_gradient_test(configs, pt_bench_op) without return types