class_docstr: Test class for `RetrievalRecall` metric.
class_docstr_tok: ["Test","class","for","`","RetrievalRecall","`","metric","."]
docstr: Test dtype support of the metric on CPU.
docstr_tok: ["Test","dtype","support","of","the","metric","on","CPU","."]
code: def test_precision_cpu(
      self, indexes: Tensor, preds: Tensor, target: Tensor
  ):
      """Test dtype support of the metric on CPU."""
      self.run_precision_test_cpu(
          indexes=indexes,
          preds=preds,
          target=target,
          metric_module=RetrievalRecall,
          metric_functional=retrieval_recall,
      )
  
file_path: torchmetrics/tests/unittests/retrieval/test_recall.py
imports: from typing import Callable, Optional, Union
  import numpy
  import pytest
  from torch import Tensor
  from torchmetrics.functional.retrieval.recall import retrieval_recall
  from torchmetrics.retrieval.recall import RetrievalRecall
  from typing_extensions import Literal
  from unittests.helpers import seed_all
  from unittests.retrieval.helpers import RetrievalMetricTester, _concat_tests, _custom_aggregate_fn, _default_metric_class_input_arguments, _default_metric_class_input_arguments_ignore_index, _default_metric_functional_input_arguments, _errors_test_class_metric_parameters_default, _errors_test_class_metric_parameters_k, _errors_test_class_metric_parameters_no_pos_target, _errors_test_functional_metric_parameters_default, _errors_test_functional_metric_parameters_k
label_desc: Use image node_id 4 for calling the TestRecall obj's underlying member method code with example usage: obj.test_precision_cpu(indexes, preds, target) without return types