code: def draw_ssd_final_pred_anchors(pred_dict, image):
      """
      Draw the anchors used for the final prediction.
      """
  
      objects = pred_dict["classification_prediction"]["objects"]
      objects_labels = pred_dict["classification_prediction"]["labels"]
      objects_labels_prob = pred_dict["classification_prediction"][
          "probs"
      ]
      objects_anchors = pred_dict["classification_prediction"][
          "anchors"
      ]
  
      if len(objects_labels) == 0:
          logger.debug(
              "No objects detected. Probably all classified as background."
          )
  
      image_pil, draw = get_image_draw(image)
  
      for num_object, (object_, label, prob, anchor) in enumerate(
          zip(
              objects,
              objects_labels,
              objects_labels_prob,
              objects_anchors,
          )
      ):
          anchor = list(anchor)
          bbox = list(object_)
          draw.rectangle(
              anchor, fill=(0, 255, 0, 20), outline=(0, 255, 0, 100)
          )
          draw.rectangle(
              bbox, fill=(255, 0, 255, 20), outline=(255, 0, 255, 100)
          )
          draw.text(
              tuple([bbox[0], bbox[1]]),
              text="{} - {:.2f}".format(label, prob),
              font=font,
              fill=(0, 0, 0, 255),
          )
          draw.line(
              [(anchor[0], anchor[1]), (bbox[0], bbox[1])],
              fill=(0, 0, 0, 170),
              width=1,
          )
          draw.line(
              [(anchor[2], anchor[1]), (bbox[2], bbox[1])],
              fill=(0, 0, 0, 170),
              width=1,
          )
          draw.line(
              [(anchor[2], anchor[3]), (bbox[2], bbox[3])],
              fill=(0, 0, 0, 170),
              width=1,
          )
          draw.line(
              [(anchor[0], anchor[3]), (bbox[0], bbox[3])],
              fill=(0, 0, 0, 170),
              width=1,
          )
  
      return image_pil
  
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 33 for calling a global function with example usage: draw_ssd_final_pred_anchors(pred_dict, image) and returns: image_pil