code: def test_embedding_accuracy(data, keras_model, hls_model):
      X = data
      model = keras_model
      # model under test predictions and accuracy
      y_keras = model.predict(X)
      y_hls4ml = hls_model.predict(X.astype(float)).reshape(
          y_keras.shape
      )
      # "accuracy" of hls4ml predictions vs keras
      np.testing.assert_allclose(
          y_keras, y_hls4ml, rtol=0, atol=1e-03, verbose=True
      )
  
file_path: hls4ml/test/pytest/test_embed.py
imports: from pathlib import Path
  import numpy
  import pytest
  from tensorflow.keras.layers import Embedding, Input
  from tensorflow.keras.models import Model
  import hls4ml
label_desc: Use image node_id 4 for calling a global function with example usage: test_embedding_accuracy(data, keras_model, hls_model) without return types