code: def precision_recall_curve_compute_fn(
      y_preds: torch.Tensor, y_targets: torch.Tensor
  ) -> Tuple[Any, Any, Any]:
      try:
          from sklearn.metrics import precision_recall_curve
      except ImportError:
          raise ModuleNotFoundError(
              "This contrib module requires scikit-learn to be installed."
          )
  
      y_true = y_targets.cpu().numpy()
      y_pred = y_preds.cpu().numpy()
      return precision_recall_curve(y_true, y_pred)
  
file_path: ignite/ignite/contrib/metrics/precision_recall_curve.py
imports: from typing import Any, Callable, cast, Tuple, Union
  import torch
  import ignite.distributed
  from ignite.exceptions import NotComputableError
  from ignite.metrics import EpochMetric
label_desc: Use image node_id 1 for calling a global function with example usage: precision_recall_curve_compute_fn(y_preds, y_targets) and returns: precision_recall_curve