code: def testValuesAreCorrectInverseLengthScale(
      self, feature_ndims, dtype, dims
  ):
      amplitude = np.array(5.0, dtype=dtype)
      inverse_length_scale = np.linspace(1.0, 10.0, 20, dtype=dtype)
      scale_mixture_rate = np.array(3.0, dtype=dtype)
  
      np.random.seed(42)
      k = rational_quadratic.RationalQuadratic(
          amplitude=amplitude,
          inverse_length_scale=inverse_length_scale,
          scale_mixture_rate=scale_mixture_rate,
          feature_ndims=feature_ndims,
      )
      k_ls = rational_quadratic.RationalQuadratic(
          amplitude=amplitude,
          length_scale=1.0 / inverse_length_scale,
          scale_mixture_rate=scale_mixture_rate,
          feature_ndims=feature_ndims,
      )
      shape = [dims] * feature_ndims
      x = np.random.uniform(-1, 1, size=shape).astype(dtype)
      y = np.random.uniform(-1, 1, size=shape).astype(dtype)
      self.assertAllClose(
          self.evaluate(k.apply(x, y)), self.evaluate(k_ls.apply(x, y))
      )
  
file_path: probability/tensorflow_probability/python/math/psd_kernels/rational_quadratic_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 rational_quadratic
label_desc: Use image node_id 5 for calling the RationalQuadraticTest obj's underlying member method code with example usage: obj.testValuesAreCorrectInverseLengthScale(feature_ndims, dtype, dims) without return types