code: def test_diagquad_with_kwarg(
      mu1: TensorType, var1: TensorType
  ) -> None:
      alpha: AnyNDArray = np.array([2.5, -1.3])
      num_gauss_hermite_points = 25
      quad = ndiagquad(
          lambda X, Y: tf.exp(X * Y),
          num_gauss_hermite_points,
          mu1,
          var1,
          Y=alpha,
      )
      quad_old = ndiagquad_old(
          lambda X, Y: tf.exp(X * Y),
          num_gauss_hermite_points,
          mu1,
          var1,
          Y=alpha,
      )
      assert_allclose(quad, quad_old)
  
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 4 for calling a global function with example usage: test_diagquad_with_kwarg(mu1, var1) without return types