class_docstr: Test class for `FowlkesMallowsIndex` metric.
class_docstr_tok: ["Test","class","for","`","FowlkesMallowsIndex","`","metric","."]
docstr: Test functional implementation of metric.
docstr_tok: ["Test","functional","implementation","of","metric","."]
code: def test_fowlkes_mallows_index_functional(self, preds, target):
      """Test functional implementation of metric."""
      self.run_functional_metric_test(
          preds=preds,
          target=target,
          metric_functional=fowlkes_mallows_index,
          reference_metric=sklearn_fowlkes_mallows_score,
      )
  
file_path: torchmetrics/tests/unittests/clustering/test_fowlkes_mallows_index.py
imports: import pytest
  from sklearn.metrics import fowlkes_mallows_score
  from torchmetrics.clustering import FowlkesMallowsIndex
  from torchmetrics.functional.clustering import fowlkes_mallows_index
  from unittests.clustering.inputs import _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 TestFowlkesMallowsIndex obj's underlying member method code with example usage: obj.test_fowlkes_mallows_index_functional(preds, target) without return types