code: def compute_auprc(
      predictions: torch.Tensor,
      labels: torch.Tensor,
      weights: torch.Tensor,
  ) -> torch.Tensor:
      return _compute_auprc_helper(predictions, labels, weights)
  
imports: import unittest
  from typing import Dict, Iterable, List, Optional, Type, Union
  import torch
  from torch import no_grad
  from torchrec.metrics.auprc import _compute_auprc_helper, AUPRCMetric
  from torchrec.metrics.metrics_config import DefaultTaskInfo
  from torchrec.metrics.rec_metric import RecComputeMode, RecMetric, RecMetricException, RecTaskInfo
  from torchrec.metrics.test_utils import metric_test_helper, rec_metric_value_test_launcher, TestMetric
label_desc: Use image node_id 1 for calling a global function with example usage: compute_auprc(predictions, labels, weights) and returns: _compute_auprc_helper