code: def test_proposal(target, dev):
      attrs = {
          "scales": (0.5,),
          "ratios": (0.5,),
          "feature_stride": 16,
          "iou_loss": False,
          "rpn_min_size": 16,
          "threshold": 0.7,
          "rpn_pre_nms_top_n": 200,
          "rpn_post_nms_top_n": 4,
      }
      np_cls_prob = np.array(
          [
              [
                  [[0.3, 0.6, 0.2], [0.4, 0.7, 0.5], [0.1, 0.4, 0.3]],
                  [[0.7, 0.5, 0.3], [0.6, 0.4, 0.8], [0.9, 0.2, 0.5]],
              ]
          ],
          dtype="float32",
      )
      np_bbox_pred = np.array(
          [
              [
                  [[0.5, 1.0, 0.6], [0.8, 1.2, 2.0], [0.9, 1.0, 0.8]],
                  [[0.5, 1.0, 0.7], [0.8, 1.2, 1.6], [2.1, 1.5, 0.7]],
                  [[1.0, 0.5, 0.7], [1.5, 0.9, 1.6], [1.4, 1.5, 0.8]],
                  [[1.0, 0.5, 0.6], [1.5, 0.9, 2.0], [1.8, 1.0, 0.9]],
              ]
          ],
          dtype="float32",
      )
      np_im_info = np.array([[48.0, 48.0, 1.0]], dtype="float32")
      np_out = np.array(
          [
              [0.0, 0.0, 2.8451548, 28.38012, 18.154846],
              [0.0, 0.0, 15.354933, 41.96971, 41.245064],
              [0.0, 18.019852, 1.0538368, 51.98015, 25.946163],
              [0.0, 27.320923, -1.266357, 55.0, 24.666357],
          ],
          dtype="float32",
      )
  
      verify_proposal(
          target,
          dev,
          np_cls_prob,
          np_bbox_pred,
          np_im_info,
          np_out,
          attrs,
      )
  
      np_out = np.array(
          [
              [0.0, -5.25, -2.5, 21.75, 19.0],
              [0.0, 11.25, -2.0, 37.25, 18.5],
              [0.0, 26.849998, -2.3000002, 53.45, 18.6],
              [0.0, -4.95, 13.799999, 22.25, 35.5],
          ],
          dtype="float32",
      )
  
      attrs["iou_loss"] = True
      verify_proposal(
          target,
          dev,
          np_cls_prob,
          np_bbox_pred,
          np_im_info,
          np_out,
          attrs,
      )
  
imports: import math
  import sys
  import numpy
  import pytest
  import tvm
  import tvm.testing
  import tvm.topi.testing
  from tvm import te, topi
  from tvm.topi.vision import ssd, non_max_suppression, get_valid_counts
label_desc: Use image node_id 4 for calling a global function with example usage: test_proposal(target, dev) without return types