code: def test_compare_load(pool_params):
      pool_1 = Pool.from_file(
          pool_params["pool_file"], pool_params["component_type"], 10
      )
      f = open(pool_params["pool_file"], "rb")
      array = f.read()
      pool_2 = Pool.from_bytes(array, pool_params["component_type"], 10)
      assert pool_1.get_num_items() == pool_2.get_num_items()
      assert pool_1.dimension == pool_2.dimension
      for i in range(pool_1.get_num_items()):
          for j in range(pool_1.dimension):
              assert pool_1.get_item(i)[j] == pool_2.get_item(i)[j]
  
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 8 for calling a global function with example usage: test_compare_load(pool_params) without return types