code: def test_metrics_same_number_of_retrievals(
      metric_function, expected_value
  ):
      """Number of retrievals = Number of ground truth retrievals"""
      corr_dup, ret_dups = initialize_fake_data_retrieved_same()
      avg_val = metric_function(corr_dup, ret_dups)
      assert avg_val == expected_value
  
file_path: imagededup/tests/test_information_retrieval.py
imports: import pickle
  import pytest
  from pathlib import Path
  from imagededup.handlers.metrics.information_retrieval import *
label_desc: Use image node_id 7 for calling a global function with example usage: test_metrics_same_number_of_retrievals(metric_function, expected_value) without return types