code: def test_diagquad_1d(mu: TensorType, var: TensorType) -> None:
      num_gauss_hermite_points = 25
      quad = quadrature.ndiagquad(
          [lambda *X: tf.exp(X[0])],
          num_gauss_hermite_points,
          [mu],
          [var],
      )
      expected = np.exp(mu + var / 2)
      assert_allclose(quad[0], expected)
  
file_path: GPflow/tests/gpflow/quadrature/test_quadrature.py
imports: from typing import cast
  import numpy
  import pytest
  import tensorflow
  from numpy.testing import assert_allclose
  import gpflow.quadrature
  from gpflow.base import AnyNDArray, TensorType
label_desc: Use image node_id 1 for calling a global function with example usage: test_diagquad_1d(mu, var) without return types