class_docstr: Test class for `AdjustedRandScore` metric.
class_docstr_tok: ["Test","class","for","`","AdjustedRandScore","`","metric","."]
docstr: Test class implementation of metric.
docstr_tok: ["Test","class","implementation","of","metric","."]
code: def test_adjusted_rand_score(self, preds, target, ddp):
      """Test class implementation of metric."""
      self.run_class_metric_test(
          ddp=ddp,
          preds=preds,
          target=target,
          metric_class=AdjustedRandScore,
          reference_metric=sklearn_adjusted_rand_score,
      )
  
file_path: torchmetrics/tests/unittests/clustering/test_adjusted_rand_score.py
imports: import pytest
  import torch
  from sklearn.metrics import adjusted_rand_score
  from torchmetrics.clustering.adjusted_rand_score import AdjustedRandScore
  from torchmetrics.functional.clustering.adjusted_rand_score import adjusted_rand_score
  from unittests.clustering.inputs import _float_inputs_extrinsic, _single_target_extrinsic1, _single_target_extrinsic2
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 1 for calling the TestAdjustedRandScore obj's underlying member method code with example usage: obj.test_adjusted_rand_score(preds, target, ddp) without return types