code: def testDeterministicOpsErrors(self):
      with self.assertRaisesRegex(
          RuntimeError,
          "Random ops require a seed to be set when determinism is enabled.",
      ):
          random_ops.random_normal((1,))
      with self.assertRaisesRegex(
          RuntimeError,
          "Random ops require a seed to be set when determinism is enabled.",
      ):
          random_ops.truncated_normal((1,))
      with self.assertRaisesRegex(
          RuntimeError,
          "Random ops require a seed to be set when determinism is enabled.",
      ):
          random_ops.random_uniform((1,))
      with self.assertRaisesRegex(
          errors.InvalidArgumentError,
          "When determinism is enabled, random ops must have a seed specified",
      ):
          self.evaluate(
              gen_random_ops.random_standard_normal(
                  (1,), dtypes.float32
              )
          )
  
imports: import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import config
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_random_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the DeterministicOpsTest obj's underlying member method code with example usage: obj.testDeterministicOpsErrors() without return types