code: def consistency_checking(
      doc,
      query,
      dimension,
      topk,
      measure_name,
      column_number,
      row_number,
      threads,
      index_builder,
      builder_params,
      index_converter,
      index_converter_params,
      index_searcher,
      searcher_params,
      index_reformer,
      index_reformer_params,
      decimal=6,
  ):
      # proxima_data
      pk_p, distance_p = proxima_build_and_query(
          doc=doc,
          query=query,
          dimension=dimension,
          topk=topk,
          measure_name=measure_name,
          index_builder=index_builder,
          builder_params=builder_params,
          index_converter=index_converter,
          index_converter_params=index_converter_params,
          index_searcher=index_searcher,
          searcher_params=searcher_params,
          index_reformer=index_reformer,
          index_reformer_params=index_reformer_params,
      )
  
      # mars_data
      pk_m, distance_m = build_and_query(
          doc,
          query,
          dimension=dimension,
          topk=topk,
          threads=threads,
          measure_name=measure_name,
          column_number=column_number,
          row_number=row_number,
          index_builder=index_builder,
          builder_params=builder_params,
          index_converter=index_converter,
          index_converter_params=index_converter_params,
          index_searcher=index_searcher,
          searcher_params=searcher_params,
          index_reformer=index_reformer,
          index_reformer_params=index_reformer_params,
      )
  
      # testing
      np.testing.assert_array_equal(pk_p, pk_m)
      np.testing.assert_array_almost_equal(
          distance_p, distance_m, decimal=decimal
      )
  
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 4 for calling a global function with example usage: consistency_checking(doc, query, dimension, topk, measure_name, column_number, row_number, threads, index_builder, builder_params, index_converter, index_converter_params, index_searcher, searcher_params, index_reformer, index_reformer_params, decimal) without return types