code: def create_random_bboxes(num_bboxes, img_w, img_h):
      bboxes_left_top = np.random.uniform(0, 0.5, size=(num_bboxes, 2))
      bboxes_right_bottom = np.random.uniform(
          0.5, 1, size=(num_bboxes, 2)
      )
      bboxes = np.concatenate((bboxes_left_top, bboxes_right_bottom), 1)
      bboxes = (bboxes * np.array([img_w, img_h, img_w, img_h])).astype(
          np.float32
      )
      return bboxes
  
file_path: mmdetection/tests/test_datasets/test_transforms/utils.py
imports: import numpy
  from mmengine.testing import assert_allclose
  from mmdet.structures.bbox import BaseBoxes, HorizontalBoxes
  from mmdet.structures.mask import BitmapMasks, PolygonMasks
label_desc: Use image node_id 1 for calling a global function with example usage: create_random_bboxes(num_bboxes, img_w, img_h) and returns: bboxes