class_docstr: Test class for `ConcordanceCorrCoef` metric.
class_docstr_tok: ["Test","class","for","`","ConcordanceCorrCoef","`","metric","."]
docstr: Test class implementation of metric.
docstr_tok: ["Test","class","implementation","of","metric","."]
code: def test_concordance_corrcoef(self, preds, target, ddp):
      """Test class implementation of metric."""
      num_outputs = EXTRA_DIM if preds.ndim == 3 else 1
      self.run_class_metric_test(
          ddp,
          preds,
          target,
          ConcordanceCorrCoef,
          _scipy_concordance,
          metric_args={"num_outputs": num_outputs},
      )
  
file_path: torchmetrics/tests/unittests/regression/test_concordance.py
imports: from functools import partial
  import numpy
  import pytest
  import torch
  from scipy.stats import pearsonr
  from torchmetrics.functional.regression.concordance import concordance_corrcoef
  from torchmetrics.regression.concordance import ConcordanceCorrCoef
  from torchmetrics.utilities.imports import _TORCH_GREATER_EQUAL_2_1
  from unittests import BATCH_SIZE, EXTRA_DIM, NUM_BATCHES, _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 1 for calling the TestConcordanceCorrCoef obj's underlying member method code with example usage: obj.test_concordance_corrcoef(preds, target, ddp) without return types