code: def make_rois(h, w, rois_num, output_size):
      rois = np.zeros((0, 4)).astype("float32")
      for roi_num in rois_num:
          roi = np.zeros((roi_num, 4)).astype("float32")
          roi[:, 0] = np.random.randint(
              0, h - output_size[0], size=roi_num
          )
          roi[:, 1] = np.random.randint(
              0, w - output_size[1], size=roi_num
          )
          roi[:, 2] = np.random.randint(roi[:, 0] + output_size[0], h)
          roi[:, 3] = np.random.randint(roi[:, 1] + output_size[1], w)
          rois = np.vstack((rois, roi))
      return rois
  
imports: from __future__ import print_function
  import os, sys
  import unittest
  import numpy
  import paddle
  import ppdet.modeling.ops
  from ppdet.modeling.tests.test_base import LayerTest
label_desc: Use image node_id 1 for calling a global function with example usage: make_rois(h, w, rois_num, output_size) and returns: rois