code: def test_gaussian(x: float, mu: float, var: float) -> None:
      gpf = logdensities.gaussian(x, mu, var).numpy()
      sps = scipy.stats.norm(loc=mu, scale=np.sqrt(var)).logpdf(x)
      np.testing.assert_allclose(gpf, sps)
  
file_path: GPflow/tests/gpflow/test_logdensities.py
imports: import numpy
  import pytest
  import scipy.stats
  from numpy.random import randn
  from numpy.testing import assert_allclose
  from scipy.stats import multivariate_normal
  from gpflow import logdensities
  from gpflow.base import AnyNDArray
  from gpflow.utilities import to_default_float
label_desc: Use image node_id 1 for calling a global function with example usage: test_gaussian(x, mu, var) without return types