code: def testValuesAreCorrect(self, feature_ndims, dtype, dims):
      amplitude = np.array(5.0, dtype=dtype)
      period = np.array(1.0, dtype=dtype)
      length_scale = np.array(0.2, dtype=dtype)
  
      np.random.seed(42)
      k = exp_sin_squared.ExpSinSquared(
          amplitude=amplitude,
          length_scale=length_scale,
          period=period,
          feature_ndims=feature_ndims,
      )
      shape = [dims] * feature_ndims
      for _ in range(5):
          x = np.random.uniform(-3.0, 3.0, size=shape).astype(dtype)
          y = np.random.uniform(-3.0, 3.0, size=shape).astype(dtype)
          self.assertAllClose(
              self._exp_sin_squared_kernel(
                  amplitude, length_scale, period, x, y
              ),
              self.evaluate(k.apply(x, y)),
              rtol=1e-4,
          )
  
file_path: probability/tensorflow_probability/python/math/psd_kernels/exp_sin_squared_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math.psd_kernels import exp_sin_squared
label_desc: Use image node_id 3 for calling the ExpSinSquaredTest obj's underlying member method code with example usage: obj.testValuesAreCorrect(feature_ndims, dtype, dims) without return types