code: def test_build_and_search_index_with_filesystem_download(setup):
      with tempfile.TemporaryDirectory() as f:
          # params
          doc_count, query_count, dimension = 2000, 15, 10
          topk = 10
          doc_chunk, query_chunk = 1000, 5
  
          # data
          doc, query = gen_data(
              doc_count=doc_count,
              query_count=query_count,
              dimension=dimension,
          )
  
          df = md.DataFrame(
              pd.DataFrame(doc), chunk_size=(doc_chunk, dimension)
          )
          q = mt.tensor(query, chunk_size=(query_chunk, dimension))
  
          index = build_index(tensor=df, index_path=f, column_number=2)
  
          assert len(os.listdir(f)) > 0
  
          search_index(q[0:5], topk, index)
          search_index(q[5:10], topk, index)
          search_index(q[10:15], topk, index)
  
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 7 for calling a global function with example usage: test_build_and_search_index_with_filesystem_download(setup) without return types