class_docstr: Test class for `MultilabelRecallAtFixedPrecision` metric.
class_docstr_tok: ["Test","class","for","`","MultilabelRecallAtFixedPrecision","`","metric","."]
docstr: Test dtype support of the metric on CPU.
code: def test_multilabel_recall_at_fixed_precision_dtype_cpu(
      self, inputs, dtype
  ):
      """Test dtype support of the metric on CPU."""
      preds, target = inputs
      if dtype == torch.half and not ((preds > 0) & (preds < 1)).all():
          pytest.xfail(
              reason="half support for torch.softmax on cpu not implemented"
          )
      self.run_precision_test_cpu(
          preds=preds,
          target=target,
          metric_module=MultilabelRecallAtFixedPrecision,
          metric_functional=multilabel_recall_at_fixed_precision,
          metric_args={
              "min_precision": 0.5,
              "thresholds": None,
              "num_labels": NUM_CLASSES,
          },
          dtype=dtype,
      )
  
imports: from functools import partial
  import numpy
  import pytest
  import torch
  from scipy.special import expit
  from scipy.special import softmax
  from sklearn.metrics import precision_recall_curve
  from torchmetrics.classification.recall_fixed_precision import BinaryRecallAtFixedPrecision, MulticlassRecallAtFixedPrecision, MultilabelRecallAtFixedPrecision, RecallAtFixedPrecision
  from torchmetrics.functional.classification.recall_fixed_precision import binary_recall_at_fixed_precision, multiclass_recall_at_fixed_precision, multilabel_recall_at_fixed_precision
  from torchmetrics.metric import Metric
  from unittests import NUM_CLASSES
  from unittests.classification.inputs import _binary_cases, _multiclass_cases, _multilabel_cases
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester, inject_ignore_index, remove_ignore_index
label_desc: Use image node_id 4 for calling the TestMultilabelRecallAtFixedPrecision obj's underlying member method code with example usage: obj.test_multilabel_recall_at_fixed_precision_dtype_cpu(inputs, dtype) without return types