class_docstr: Test cases for stateless random-number generator operators.
class_docstr_tok: ["Test","cases","for","stateless","random-number","generator","operators","."]
docstr: Use Anderson-Darling test to test distribution appears normal.
docstr_tok: ["Use","Anderson-Darling","test","to","test","distribution","appears","normal","."]
code: def testDistributionOfStatelessRandomNormal(self, dtype, seed):
      """Use Anderson-Darling test to test distribution appears normal."""
      with self.session() as sess, self.test_scope():
          seed_t = array_ops.placeholder(dtypes.int32, shape=[2])
          n = 1000
          x = stateless.stateless_random_normal(
              shape=[n], seed=seed_t, dtype=dtype
          )
          y = sess.run(x, {seed_t: seed})
          # The constant 2.492 is the 5% critical value for the Anderson-Darling
          # test where the mean and variance are known. This test is probabilistic
          # so to avoid flakiness the seed is fixed.
          self.assertLess(
              random_test_util.anderson_darling(y.astype(float)), 2.492
          )
  
imports: import functools
  from absl.testing import parameterized
  import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.client import device_lib
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import config
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.kernel_tests.random import util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_stateless_random_ops_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops_util
  from tensorflow.python.ops import stateless_random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 10 for calling the StatelessRandomOpsTest obj's underlying member method code with example usage: obj.testDistributionOfStatelessRandomNormal(dtype, seed) without return types