code: def test_wrong_setup():
      def compute_fn(y_preds, y_targets):
          return 0.0
  
      with pytest.raises(
          NotComputableError,
          match="RocCurve must have at least one example before it can be computed",
      ):
          metric = RocCurve(compute_fn)
          metric.compute()
  
file_path: ignite/tests/ignite/contrib/metrics/test_roc_curve.py
imports: from unittest.mock import patch
  import numpy
  import pytest
  import sklearn
  import torch
  from sklearn.metrics import roc_curve
  from ignite import distributed
  from ignite.contrib.metrics.roc_auc import RocCurve
  from ignite.engine import Engine
  from ignite.exceptions import NotComputableError
  from ignite.metrics.epoch_metric import EpochMetricWarning
label_desc: Use image node_id 1 for calling a global function with example usage: test_wrong_setup() and returns: int