class_docstr: Test class for `RandScore` metric.
docstr: Test functional implementation of metric.
docstr_tok: ["Test","functional","implementation","of","metric","."]
code: def test_rand_score_functional(self, preds, target):
      """Test functional implementation of metric."""
      self.run_functional_metric_test(
          preds=preds,
          target=target,
          metric_functional=rand_score,
          reference_metric=sklearn_rand_score,
      )
  
file_path: torchmetrics/tests/unittests/clustering/test_rand_score.py
imports: import pytest
  import torch
  from sklearn.metrics import rand_score
  from torchmetrics.clustering.rand_score import RandScore
  from torchmetrics.functional.clustering.rand_score import rand_score
  from unittests.clustering.inputs import _float_inputs_extrinsic, _single_target_extrinsic1, _single_target_extrinsic2
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 2 for calling the TestRandScore obj's underlying member method code with example usage: obj.test_rand_score_functional(preds, target) without return types