code: def test_build_and_search_index_with_filesystem(setup):
      with tempfile.TemporaryDirectory() as f:
          # params
          doc_count, query_count, dimension = 2000, 50, 10
          topk = 10
  
          # data
          doc, query = gen_data(
              doc_count=doc_count,
              query_count=query_count,
              dimension=dimension,
          )
  
          df = md.DataFrame(pd.DataFrame(doc))
          q = mt.tensor(query)
  
          index = build_index(tensor=df, index_path=f, column_number=2)
  
          assert len(os.listdir(f)) > 0
  
          # proxima_data
          pk_p, distance_p = proxima_build_and_query(doc, query, topk)
          pk_m, distance_m = search_index(
              tensor=q, topk=topk, index=index, row_number=5
          )
  
          # testing
          np.testing.assert_array_equal(pk_p, pk_m)
          np.testing.assert_array_equal(distance_p, distance_m)
  
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 6 for calling a global function with example usage: test_build_and_search_index_with_filesystem(setup) without return types