code: def test_recall(setup):
      # params
      doc_count, query_count, dimension = 2000, 150, 20
      topk = 100
      sample_count = 100
  
      # data
      doc, query = gen_data(
          doc_count=doc_count,
          query_count=query_count,
          dimension=dimension,
      )
  
      # proxima_data
      pk_p, distance_p = build_and_query(
          doc,
          query,
          dimension=dimension,
          topk=topk,
          threads=1,
          column_number=2,
          row_number=3,
      )
      assert isinstance(
          recall(
              doc=doc,
              query=query,
              topk=topk,
              sample_count=sample_count,
              pk_p=pk_p,
              distance_p=distance_p,
              column_number=2,
              row_number=2,
          ),
          dict,
      )
  
file_path: mars/mars/learn/proxima/simple_index/tests/test_simple_index.py
imports: import os
  import tempfile
  import numpy
  import pandas
  import pytest
  from .....None import dataframe
  from .....None import tensor
  from ...core import proxima
  from ..None import build_index, search_index, recall
label_desc: Use image node_id 8 for calling a global function with example usage: test_recall(setup) without return types