code: def infer_pad(data, data_pad):
      """Infer the padding from stages in reverse.
  
      Parameters
      ----------
      data : Tensor
          data stage.
  
      data_pad : Tensor
          pad stage.
  
      Returns
      -------
      hpad : int
          padding size on height
      wpad : int
          padding size on width
      """
      if data_pad is None:
          return 0, 0
      _, _, IH, IW = data.shape
      _, _, TH, TW = data_pad.shape
      hpad = (TH - IH) // 2
      wpad = (TW - IW) // 2
      return get_const_int(hpad), get_const_int(wpad)
  
file_path: tvm/python/tvm/topi/nn/utils.py
imports: from __future__ import absolute_import
  import tvm
  from ..utils import get_const_int
label_desc: Use image node_id 1 for calling a global function with example usage: infer_pad(data, data_pad) and returns: get_const_int,  get_const_int, int,  int