code: def draw_rpn_correct_proposals(pred_dict, image):
      proposals = pred_dict["rpn_prediction"]["proposals"]
      gt_bboxes = pred_dict["gt_bboxes"]
      gt_boxes = gt_bboxes[:, :4]
  
      overlaps = bbox_overlap(proposals, gt_boxes)
  
      top_overlap = overlaps.max(axis=1)
  
      top_overlap_idx = top_overlap >= 0.95
  
      proposals = proposals[top_overlap_idx]
  
      image_pil, draw = get_image_draw(image)
  
      for proposal in proposals:
          proposal = list(proposal)
          draw.rectangle(
              proposal, fill=(0, 255, 50, 20), outline=(0, 255, 50, 100)
          )
  
imports: import io
  import numpy
  import os
  import logging
  import PIL.Image
  import PIL.ImageDraw
  import PIL.ImageFont
  import tensorflow
  from .bbox_overlap import bbox_overlap
  from .bbox_transform import decode
  from base64 import b64encode
  from sys import stdout
label_desc: Use image node_id 29 for calling a global function with example usage: draw_rpn_correct_proposals(pred_dict, image) without return types