code: def test_eKdiag_no_uncertainty(kernel: krn.Kernel) -> None:
      eKdiag = expectation(_distrs["dirac_diag"], kernel)
      Kdiag = kernel(Xmu, full_cov=False)
      assert_allclose(eKdiag, Kdiag, rtol=RTOL)
  
imports: from typing import Any, Callable, Iterable, Mapping, Optional, Sequence
  import numpy
  import pytest
  import tensorflow
  from numpy.testing import assert_allclose
  from tensorflow import convert_to_tensor
  import gpflow
  import gpflow.inducing_variables
  import gpflow.kernels
  from gpflow import mean_functions
  from gpflow.base import AnyNDArray
  from gpflow.config import default_float
  from gpflow.expectations import expectation, quadrature_expectation
  from gpflow.probability_distributions import DiagonalGaussian, Gaussian, MarkovGaussian, ProbabilityDistribution
label_desc: Use image node_id 10 for calling a global function with example usage: test_eKdiag_no_uncertainty(kernel) without return types