code: def draw_on(self, eimg, results):
      face_sizes = [(x[0][2] - x[0][0]) for x in results]
      max_index = np.argmax(face_sizes)
      max_face_size = face_sizes[max_index]
      rescale = 300.0 / max_face_size
      # print(max_face_size, rescale)
      oimg = eimg.copy()
      eimg = cv2.resize(eimg, None, fx=rescale, fy=rescale)
      for pred in results:
          _, _, eye_kps = pred
          eye_kps = eye_kps.copy()
          eye_kps *= rescale
          eimg = self.draw_item(eimg, eye_kps)
      eimg = cv2.resize(eimg, (oimg.shape[1], oimg.shape[0]))
      return eimg
      pred_max = results[max_index]
      bbox, kps, eye_kps = pred_max
      width = bbox[2] - bbox[0]
      center = (kps[0] + kps[1]) / 2.0
      # _size = np.abs(kps[1][0] - kps[0][0]) * 1.5
      _size = max(width / 1.5, np.abs(kps[1][0] - kps[0][0])) * 1.5
      rotate = 0
      _scale = self.input_size / _size
      aimg, M = face_align.transform(
          oimg, center, self.input_size, _scale, rotate
      )
      eye_kps = face_align.trans_points(eye_kps, M)
      center_eye_rescale = 4.0
      aimg = cv2.resize(
          aimg, None, fx=center_eye_rescale, fy=center_eye_rescale
      )
      eye_kps *= center_eye_rescale
      aimg = self.draw_item(aimg, eye_kps)
      # return aimg
  
      rimg = np.zeros(
          (
              max(eimg.shape[0], aimg.shape[0]),
              eimg.shape[1] + aimg.shape[1],
              3,
          ),
          dtype=np.uint8,
      )
      rimg[: eimg.shape[0], : eimg.shape[1], :] = eimg
      rimg[
          : aimg.shape[0],
          eimg.shape[1] : eimg.shape[1] + aimg.shape[1],
          :,
      ] = aimg
      return rimg
  
imports: from models import GazeModel
  import sys
  import glob
  import torch
  import os
  import os.path
  import numpy
  import cv2
  import os.path
  import insightface
  from insightface.app import FaceAnalysis
  from insightface.utils import face_align
  import menpo.io
  from menpo.image import Image
  from menpo.shape import PointCloud, TriMesh
label_desc: Use image node_id 3 for calling the GazeHandler obj's underlying member method code with example usage: obj.draw_on(eimg, results) and returns: eimg, rimg