code: def pos_semidefinite(kernel: kernels.Kernel) -> None:
      N, D = 100, 5
      X = rng.randn(N, D)
  
      cov = kernel(X)
      eig = tf.linalg.eigvalsh(cov).numpy()
      assert_array_less(-1e-12, eig)
  
file_path: GPflow/tests/gpflow/kernels/test_positive_semidefinite.py
imports: from typing import Type
  import numpy
  import pytest
  import tensorflow
  from numpy.testing import assert_array_less
  import gpflow.ci_utils
  from gpflow import kernels
label_desc: Use image node_id 1 for calling a global function with example usage: pos_semidefinite(kernel) without return types