code: def testSuccessAfterError(self):
      # Force an error on the TruncatedNormal kernel.
      config.enable_op_determinism()
      with self.assertRaisesRegex(
          errors.InvalidArgumentError,
          "When determinism is enabled, random ops must have a seed specified",
      ):
          self.evaluate(
              gen_random_ops.truncated_normal((1,), dtypes.float32)
          )
      config.disable_op_determinism()
  
      # Ensure the StdDev of the TruncatedNormal works as intended.
      self.testStdDev()
  
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 6 for calling the TruncatedNormalTest obj's underlying member method code with example usage: obj.testSuccessAfterError() without return types