class_docstr: Test class for `CalinskiHarabaszScore` metric.
class_docstr_tok: ["Test","class","for","`","CalinskiHarabaszScore","`","metric","."]
docstr: Test class implementation of metric.
docstr_tok: ["Test","class","implementation","of","metric","."]
code: def test_calinski_harabasz_score(self, data, labels, ddp):
      """Test class implementation of metric."""
      self.run_class_metric_test(
          ddp=ddp,
          preds=data,
          target=labels,
          metric_class=CalinskiHarabaszScore,
          reference_metric=sklearn_calinski_harabasz_score,
      )
  
file_path: torchmetrics/tests/unittests/clustering/test_calinski_harabasz_score.py
imports: import pytest
  from sklearn.metrics import calinski_harabasz_score
  from torchmetrics.clustering.calinski_harabasz_score import CalinskiHarabaszScore
  from torchmetrics.functional.clustering.calinski_harabasz_score import calinski_harabasz_score
  from unittests.clustering.inputs import _single_target_intrinsic1, _single_target_intrinsic2
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 1 for calling the TestCalinskiHarabaszScore obj's underlying member method code with example usage: obj.test_calinski_harabasz_score(data, labels, ddp) without return types