code: def compute_roi_pool(attrs, inputs, _):
      """Compute definition of roi_pool"""
      assert attrs.layout == "NCHW", "only support nchw for now"
      return [
          topi.vision.rcnn.roi_pool_nchw(
              inputs[0],
              inputs[1],
              pooled_size=get_const_tuple(attrs.pooled_size),
              spatial_scale=attrs.spatial_scale,
          )
      ]
  
file_path: tvm/python/tvm/relay/op/vision/_rcnn.py
imports: from tvm import topi
  from tvm.topi.utils import get_const_tuple
  from ..None import op
  from ..None import strategy
  from ..op import OpPattern
label_desc: Use image node_id 3 for calling a global function with example usage: compute_roi_pool(attrs, inputs, _) and returns: list