class_docstr: Test class for `AUC`.
class_docstr_tok: ["Test","class","for","`","AUC","`","."]
docstr: Test functional implementation.
docstr_tok: ["Test","functional","implementation","."]
code: def test_auc_functional(self, x, y, reorder):
      """Test functional implementation."""
      self.run_functional_metric_test(
          x,
          y,
          metric_functional=auc,
          reference_metric=partial(sk_auc, reorder=reorder),
          metric_args={"reorder": reorder},
      )
  
file_path: torchmetrics/tests/unittests/utilities/test_auc.py
imports: from functools import partial
  from typing import NamedTuple
  import numpy
  import pytest
  from sklearn.metrics import auc
  from torch import Tensor, tensor
  from torchmetrics.utilities.compute import auc
  from unittests import NUM_BATCHES
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 1 for calling the TestAUC obj's underlying member method code with example usage: obj.test_auc_functional(x, y, reorder) without return types