code: def _rand_bboxes(rng, num_boxes, w, h):
      cx, cy, bw, bh = rng.rand(num_boxes, 4).T
  
      tl_x = ((cx * w) - (w * bw / 2)).clip(0, w)
      tl_y = ((cy * h) - (h * bh / 2)).clip(0, h)
      br_x = ((cx * w) + (w * bw / 2)).clip(0, w)
      br_y = ((cy * h) + (h * bh / 2)).clip(0, h)
  
      bboxes = np.vstack([tl_x, tl_y, br_x, br_y]).T
      return bboxes
  
imports: import copy
  from os.path import dirname, exists, join
  import numpy
  import torch
  from mmengine.config import Config
  from mmengine.dataset import pseudo_collate
  from mmengine.structures import InstanceData, PixelData
  from mmdet.utils.util_random import ensure_rng
  from ..registry import TASK_UTILS
  from ..structures import DetDataSample, TrackDataSample
  from ..structures.bbox import HorizontalBoxes
label_desc: Use image node_id 5 for calling a global function with example usage: _rand_bboxes(rng, num_boxes, w, h) and returns: bboxes