code: def testShapeInferencePadZero(self):
      model = model_helper.ModelHelper(name="padtest")
      model.PadImage(
          "data", "padded", pad=0, mode="constant", order="NCHW"
      )
  
      workspace.FeedBlob(
          "data",
          np.random.rand(16, 3, 228, 228).astype(np.float32),
      )
  
      self.InferTensorRunAndCompare(model)
  
imports: import numpy
  import unittest
  from caffe2.proto import caffe2_pb2
  from caffe2.python import core, workspace, test_util, model_helper, brew, build
label_desc: Use image node_id 12 for calling the TestShapeInference obj's underlying member method code with example usage: obj.testShapeInferencePadZero() without return types