code: def test_accuracy_stack(garnet_stack_models, batch):
      model, hls_model = garnet_stack_models
      x = [
          np.random.rand(batch, vmax, feat),
          np.random.randint(0, vmax, size=(batch, 1)),
      ]
      y = model.predict(x)
      x_hls = [x[0], x[1].astype(np.float64)]
      y_hls = hls_model.predict(x_hls).reshape(y.shape)
  
      np.testing.assert_allclose(y_hls, y, rtol=0, atol=0.1)
  
file_path: hls4ml/test/pytest/test_garnet.py
imports: from pathlib import Path
  import numpy
  import pytest
  from tensorflow.keras.layers import Input
  from tensorflow.keras.models import Model
  import hls4ml
  from contrib.garnet import GarNet, GarNetStack
label_desc: Use image node_id 4 for calling a global function with example usage: test_accuracy_stack(garnet_stack_models, batch) without return types