code: def func(args):
      image1 = cv2.imread(args.img1)
      image2 = cv2.imread(args.img2)
      bboxes1, kpss1 = detector.autodetect(image1, max_num=1)
      if bboxes1.shape[0] == 0:
          return -1.0, "Face not found in Image-1"
      bboxes2, kpss2 = detector.autodetect(image2, max_num=1)
      if bboxes2.shape[0] == 0:
          return -1.0, "Face not found in Image-2"
      kps1 = kpss1[0]
      kps2 = kpss2[0]
      feat1 = rec.get(image1, kps1)
      feat2 = rec.get(image2, kps2)
      sim = rec.compute_sim(feat1, feat2)
      if sim < 0.2:
          conclu = "They are NOT the same person"
      elif sim >= 0.2 and sim < 0.28:
          conclu = "They are LIKELY TO be the same person"
      else:
          conclu = "They ARE the same person"
      return sim, conclu
  
file_path: insightface/web-demos/src_recognition/main.py
imports: import os
  import os.path
  import argparse
  import cv2
  import numpy
  import onnxruntime
  from scrfd import SCRFD
  from arcface_onnx import ArcFaceONNX
label_desc: Use image node_id 2 for calling a global function with example usage: func(args) and returns: sim,  conclu, unknown,  str, unknown,  str