code: def _get_thr_ind(coco_eval, thr):
      ind = np.where(
          (coco_eval.params.iouThrs > thr - 1e-5)
          & (coco_eval.params.iouThrs < thr + 1e-5)
      )[0][0]
      iou_thr = coco_eval.params.iouThrs[ind]
      assert np.isclose(iou_thr, thr)
      return ind
  
file_path: gluon-cv/scripts/pose/directpose/tvm_evaluation/evaluate_pose.py
imports: import json
  import numpy
  import os
  from pose_model import PoseEstimationInferenceModel
  import cv2
  from PIL import Image
  from tqdm import tqdm
  import matplotlib
  import matplotlib.pyplot
label_desc: Use image node_id 2 for calling a global function with example usage: _get_thr_ind(coco_eval, thr) and returns: ind