code: def testValidateArgs(self):
      with self.assertRaisesOpError("must be positive"):
          k = exp_sin_squared.ExpSinSquared(
              amplitude=-1.0,
              length_scale=-1.0,
              period=-1.0,
              validate_args=True,
          )
          self.evaluate(k.apply([1.0], [1.0]))
  
      # But `None`'s are ok
      k = exp_sin_squared.ExpSinSquared(
          amplitude=None,
          length_scale=None,
          period=None,
          validate_args=True,
      )
      self.evaluate(k.apply([1.0], [1.0]))
  
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 6 for calling the ExpSinSquaredTest obj's underlying member method code with example usage: obj.testValidateArgs() without return types