code: def compute_sim(self, feat1, feat2):
      from numpy.linalg import norm
  
      feat1 = feat1.ravel()
      feat2 = feat2.ravel()
      sim = np.dot(feat1, feat2) / (norm(feat1) * norm(feat2))
      return sim
  
file_path: insightface/python-package/insightface/model_zoo/arcface_onnx.py
imports: from __future__ import division
  import numpy
  import cv2
  import onnx
  import onnxruntime
  from ..utils import face_align
label_desc: Use image node_id 4 for calling the ArcFaceONNX obj's underlying member method code with example usage: obj.compute_sim(feat1, feat2) and returns: sim