class_docstr: Test class for `MultilabelExactMatch` metric.
class_docstr_tok: ["Test","class","for","`","MultilabelExactMatch","`","metric","."]
docstr: Test the differentiability of the metric, according to its `is_differentiable` attribute.
docstr_tok: ["Test","the","differentiability","of","the","metric",",","according","to","its","`","is_differentiable","`","attribute","."]
code: def test_multilabel_exact_match_differentiability(self, inputs):
      """Test the differentiability of the metric, according to its `is_differentiable` attribute."""
      preds, target = inputs
      self.run_differentiability_test(
          preds=preds,
          target=target,
          metric_module=MultilabelExactMatch,
          metric_functional=multilabel_exact_match,
          metric_args={
              "num_labels": NUM_CLASSES,
              "threshold": THRESHOLD,
          },
      )
  
imports: from functools import partial
  import numpy
  import pytest
  import torch
  from scipy.special import expit
  from torchmetrics.classification.exact_match import ExactMatch, MulticlassExactMatch, MultilabelExactMatch
  from torchmetrics.functional.classification.exact_match import multiclass_exact_match, multilabel_exact_match
  from torchmetrics.metric import Metric
  from unittests import NUM_CLASSES, THRESHOLD
  from unittests.classification.inputs import _multiclass_cases, _multilabel_cases
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester, inject_ignore_index
label_desc: Use image node_id 3 for calling the TestMultilabelExactMatch obj's underlying member method code with example usage: obj.test_multilabel_exact_match_differentiability(inputs) without return types