code: def bounded_pr_auc(
      precisions: np.ndarray,
      recalls: np.ndarray,
      lower_bound: float = 0,
  ) -> float:
      """
      Bounded PR AUC --> AUC when recall > lower_bound.
  
      Parameters
      ----------
      precisions : np.ndarray
          precisions of different thresholds
      recalls : np.ndarray
          recalls of different thresholds
      lower_bound : float
          lower bound of recalls
  
      Returns
      -------
      bounded PR-AUC : float
      """
      sorted_recalls, sorted_precisions = zip(
          *sorted(zip(recalls, precisions), key=lambda x: (x[0], x[1]))
      )
      arg_num = np.argmax(np.array(sorted_recalls) >= lower_bound)
      pr_auc = auc(
          sorted_recalls[arg_num:], sorted_precisions[arg_num:]
      )
      return pr_auc
  
label_desc: Use image node_id 1 for calling a global function with example usage: bounded_pr_auc(precisions, recalls, lower_bound) and returns: pr_auc