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