code: def test_check_compute_fn():
      y_pred = torch.zeros((8, 13))
      y_pred[:, 1] = 1
      y_true = torch.zeros_like(y_pred)
      output = (y_pred, y_true)
  
      em = PrecisionRecallCurve(check_compute_fn=True)
  
      em.reset()
      with pytest.warns(
          EpochMetricWarning,
          match=r"Probably, there can be a problem with `compute_fn`",
      ):
          em.update(output)
  
      em = PrecisionRecallCurve(check_compute_fn=False)
      em.update(output)
  
imports: import os
  from typing import Tuple
  from unittest.mock import patch
  import numpy
  import pytest
  import sklearn
  import torch
  from sklearn.metrics import precision_recall_curve
  import ignite.distributed
  from ignite.contrib.metrics.precision_recall_curve import PrecisionRecallCurve
  from ignite.engine import Engine
  from ignite.metrics.epoch_metric import EpochMetricWarning
label_desc: Use image node_id 6 for calling a global function with example usage: test_check_compute_fn() without return types