code: def prepare(self, ctx_id, det_thresh=0.5, det_size=(640, 640)):
      self.det_thresh = det_thresh
      assert det_size is not None
      print("set det-size:", det_size)
      self.det_size = det_size
      for taskname, model in self.models.items():
          if taskname == "detection":
              model.prepare(
                  ctx_id, input_size=det_size, det_thresh=det_thresh
              )
          else:
              model.prepare(ctx_id)
  
file_path: insightface/python-package/insightface/app/face_analysis.py
imports: from __future__ import division
  import glob
  import os.path
  import numpy
  import onnxruntime
  from numpy.linalg import norm
  from ..model_zoo import model_zoo
  from ..utils import DEFAULT_MP_NAME, ensure_available
  from .common import Face
label_desc: Use image node_id 2 for calling the FaceAnalysis obj's underlying member method code with example usage: obj.prepare(ctx_id, det_thresh, det_size) without return types