code: def show_prediction_labels_on_image(img_path, predictions):
      """
      Shows the face recognition results visually.
  
      :param img_path: path to image to be recognized
      :param predictions: results of the predict function
      :return:
      """
      pil_image = Image.open(img_path).convert("RGB")
      draw = ImageDraw.Draw(pil_image)
  
      for name, (top, right, bottom, left) in predictions:
          # Draw a box around the face using the Pillow module
          draw.rectangle(
              ((left, top), (right, bottom)), outline=(0, 0, 255)
          )
  
          # There's a bug in Pillow where it blows up with non-UTF-8 text
          # when using the default bitmap font
          name = name.encode("UTF-8")
  
          # Draw a label with a name below the face
          text_width, text_height = draw.textsize(name)
          draw.rectangle(
              ((left, bottom - text_height - 10), (right, bottom)),
              fill=(0, 0, 255),
              outline=(0, 0, 255),
          )
          draw.text(
              (left + 6, bottom - text_height - 5),
              name,
              fill=(255, 255, 255, 255),
          )
  
      # Remove the drawing library from memory as per the Pillow docs
      del draw
  
      # Display the resulting image
      pil_image.show()
  
file_path: face_recognition/examples/face_recognition_knn.py
imports: import math
  from sklearn import neighbors
  import os
  import os.path
  import pickle
  from PIL import Image, ImageDraw
  import face_recognition
  from face_recognition.face_recognition_cli import image_files_in_folder
label_desc: Use image node_id 3 for calling a global function with example usage: show_prediction_labels_on_image(img_path, predictions) without return types