code: def test_online_hnsw_pool(pool_params):
      pool = Pool.from_file(
          pool_params["pool_file"], pool_params["component_type"], 10
      )
      online_hnsw = OnlineHnsw(
          pool_params["component_type"], 10, EDistance.DotProduct
      )
      for i in range(pool.get_num_items()):
          online_hnsw.add_item(pool.get_item(i))
      assert online_hnsw.get_num_items() == pool.get_num_items()
      for i in range(pool.get_num_items()):
          online_hnsw_item = online_hnsw.get_item(i)
          item = pool.get_item(i)
          assert np.all(online_hnsw_item == item)
  
imports: from __future__ import print_function
  import pytest
  import os
  import numpy
  import yatest.common
  import struct
  from hnsw import EVectorComponentType, EDistance, Pool, Hnsw, HnswException, transform_mobius, HnswEstimator, OnlineHnsw
label_desc: Use image node_id 14 for calling a global function with example usage: test_online_hnsw_pool(pool_params) without return types