code: def test_experiment_with_list_2(self):
      dim = 50
      vector_count = 100
      vectors = []
      for index in range(vector_count):
          vectors.append(numpy.random.randn(dim))
      unibucket = UniBucket("testHash")
      nearest = NearestFilter(10 + 1)
      engine = Engine(
          dim, lshashes=[unibucket], vector_filters=[nearest]
      )
      exp = RecallPrecisionExperiment(5, vectors)
      result = exp.perform_experiment([engine])
  
      # In this case precision is only 0.5
      # because the engine returns 10 nearest, but
      # the experiment only looks for 5 nearest.
      self.assertEqual(result[0][0], 1.0)
      self.assertEqual(result[0][1], 0.5)
  
file_path: NearPy/tests/experiments_tests.py
imports: from __future__ import print_function
  import numpy
  import unittest
  from nearpy.experiments import RecallPrecisionExperiment
  from nearpy.hashes import UniBucket, RandomDiscretizedProjections, RandomBinaryProjections, PCABinaryProjections
  from nearpy.filters import NearestFilter, UniqueFilter
  from nearpy.distances import CosineDistance, EuclideanDistance
  from nearpy import Engine
label_desc: Use image node_id 6 for calling the TestRecallExperiment obj's underlying member method code with example usage: obj.test_experiment_with_list_2() without return types