code: def test_hlssr(data):
      expr = "x0**2 + 2.5382*cos_lut(x3) - 0.5"
  
      lut_functions = {
          "cos_lut": {
              "math_func": "cos",
              "range_start": -4,
              "range_end": 4,
              "table_size": 2048,
          }
      }
  
      output_dir = str(test_root_path / "hls4mlprj_sr")
  
      hls_model = hls4ml.converters.convert_from_symbolic_expression(
          expr,
          n_symbols=5,
          precision="ap_fixed<18,6>",
          output_dir=output_dir,
          lut_functions=lut_functions,
          hls_include_path="",
          hls_libs_path="",
      )
      hls_model.write()
      hls_model.compile()
  
      X, y = data
      y_hls = hls_model.predict(X)
      y_hls = y_hls.reshape(y.shape)
  
      np.testing.assert_allclose(
          y, y_hls, rtol=1e-2, atol=1e-2, verbose=True
      )
  
imports: from pathlib import Path
  import numpy
  import pytest
  import hls4ml
label_desc: Use image node_id 2 for calling a global function with example usage: test_hlssr(data) without return types