code: def draw_anchor_centers(pred_dict, image):
      anchors = pred_dict["all_anchors"]
      x_min = anchors[:, 0]
      y_min = anchors[:, 1]
      x_max = anchors[:, 2]
      y_max = anchors[:, 3]
  
      center_x = x_min + (x_max - x_min) / 2.0
      center_y = y_min + (y_max - y_min) / 2.0
  
      image_pil, draw = get_image_draw(image)
  
      for x, y in zip(center_x, center_y):
          draw.rectangle(
              [x - 1, y - 1, x + 1, y + 1],
              fill=(255, 0, 0, 150),
              outline=(0, 255, 0, 200),
          )
  
      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 10 for calling a global function with example usage: draw_anchor_centers(pred_dict, image) and returns: image_pil