code: def test_load_float_from_bytes():
      EPS = 1e-6
      array = [
          [1.0, 2.0, 3.0],
          [0.0, -1.0, -2.0],
          [111.0, 0.5, 3.141592],
      ]
      vector_bytes = bytes()
      for vector in array:
          for value in vector:
              vector_bytes += struct.pack("f", value)
      pool = Pool.from_bytes(
          vector_bytes, EVectorComponentType.Float, 3
      )
      for i in range(pool.get_num_items()):
          for j in range(pool.dimension):
              assert abs(pool.get_item(i)[j] - array[i][j]) < EPS
      assert pool.dimension == 3
      assert pool.get_num_items() == 3
  
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 7 for calling a global function with example usage: test_load_float_from_bytes() without return types