code: def test_diagquad_logspace(
      mu1: TensorType,
      var1: TensorType,
      mu2: TensorType,
      var2: TensorType,
  ) -> None:
      alpha = 2.5
      num_gauss_hermite_points = 25
      quad = ndiagquad(
          lambda *X: (X[0] + alpha * X[1]),
          num_gauss_hermite_points,
          [mu1, mu2],
          [var1, var2],
          logspace=True,
      )
      quad_old = ndiagquad_old(
          lambda *X: (X[0] + alpha * X[1]),
          num_gauss_hermite_points,
          [mu1, mu2],
          [var1, var2],
          logspace=True,
      )
      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 3 for calling a global function with example usage: test_diagquad_logspace(mu1, var1, mu2, var2) without return types