code: def infer_stride(data, kernel, out):
      """Infer the stride from stages in reverse.
  
      Parameters
      ----------
      data : Tensor
          data stage.
  
      kernel : Tensor
          kernel stage.
  
      out : Tensor
          output stage.
  
      Returns
      -------
      hstride : int
          stride size on height
      wstride : int
          stride size on width
      """
      _, _, IH, IW = data.shape
      _, _, KH, KW = kernel.shape
      _, _, OH, OW = out.shape
      hstride = (IH - KH) // tvm.te.max(OH - 1, 1) + tvm.tir.Select(
          OH == 1, 1, 0
      )
      wstride = (IW - KW) // tvm.te.max(OW - 1, 1) + tvm.tir.Select(
          OW == 1, 1, 0
      )
      return get_const_int(hstride), get_const_int(wstride)
  
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 3 for calling a global function with example usage: infer_stride(data, kernel, out) and returns: get_const_int,  get_const_int