class_docstr: Test class for `ConcordanceCorrCoef` metric.
class_docstr_tok: ["Test","class","for","`","ConcordanceCorrCoef","`","metric","."]
docstr: Test dtype support of the metric on CPU.
docstr_tok: ["Test","dtype","support","of","the","metric","on","CPU","."]
code: def test_concordance_corrcoef_half_cpu(self, preds, target):
      """Test dtype support of the metric on CPU."""
      num_outputs = EXTRA_DIM if preds.ndim == 3 else 1
      self.run_precision_test_cpu(
          preds,
          target,
          partial(ConcordanceCorrCoef, num_outputs=num_outputs),
          concordance_corrcoef,
      )
  
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 4 for calling the TestConcordanceCorrCoef obj's underlying member method code with example usage: obj.test_concordance_corrcoef_half_cpu(preds, target) without return types