code: def _test_retrieval_recall_at_k_metric(self, metric, value):
      sample = Sample()
      predicted = dict()
  
      torch.manual_seed(1234)
      predicted["targets"] = torch.rand((10, 4))
      predicted["scores"] = torch.rand((10, 4))
  
      self.assertAlmostEqual(
          float(metric.calculate(sample, predicted)), value
      )
  
imports: import os
  import unittest
  import mmf.modules.metrics
  import torch
  from mmf.common.registry import registry
  from mmf.common.sample import Sample
  from mmf.datasets.processors import CaptionProcessor
  from mmf.utils.configuration import load_yaml
label_desc: Use image node_id 6 for calling the TestModuleMetrics obj's underlying member method code with example usage: obj._test_retrieval_recall_at_k_metric(metric, value) without return types