code: def to_rgb(img):
      w, h = img.shape
      ret = np.empty((w, h, 3), dtype=np.uint8)
      ret[:, :, 0] = ret[:, :, 1] = ret[:, :, 2] = img
      return ret
  
file_path: insightface/recognition/subcenter_arcface/common/build_eval_pack.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import cv2
  import pickle
  import numpy
  import sys
  import os
  import face_align
  from retinaface import RetinaFace
label_desc: Use image node_id 1 for calling a global function with example usage: to_rgb(img) and returns: ret