code: def test_resnet_shared_grads(self, with_shapes, gc, dc):
      results = utils.test_shared_grads(
          with_shapes,
          resnet.create_resnet50,
          "gpu_0/conv1_w",
          "gpu_0/last_out_L1000",
      )
      self.assertTrue(results[0][0] < results[0][1])
      np.testing.assert_almost_equal(results[1][0], results[1][1])
      np.testing.assert_almost_equal(results[2][0], results[2][1])
  
file_path: pytorch/caffe2/python/models/resnet_test.py
imports: import numpy
  import caffe2.python.models.resnet
  import hypothesis.strategies
  from hypothesis import given, settings
  import caffe2.python.hypothesis_test_util
  import caffe2.python.models.imagenet_trainer_test_utils
label_desc: Use image node_id 1 for calling the ResnetMemongerTest obj's underlying member method code with example usage: obj.test_resnet_shared_grads(with_shapes, gc, dc) without return types