code: def set_up_test_indexer(index_type):
      indexer = Indexer(
          embedding_size=EMBEDDING_SIZE,
          index_type=index_type,
          params={},
      )
      embs = np.array([[1, 1, 3], [3, 1, 2]], dtype="float32")
      idxs = [0, 1]
  
      indexer.add(embs, idxs)
      return indexer
  
file_path: unisim/tests/test_indexer.py
imports: import numpy
  import pytest
  from unisim.indexer import Indexer
label_desc: Use image node_id 1 for calling a global function with example usage: set_up_test_indexer(index_type) and returns: indexer