code: def testSamplingAtRandnSwitchover(self):
      # The randn sampler is used as the bounds are moved farther from the mean,
      # and the probability of accepting a sample increases the farther the
      # bounds are from the mean.
      # This test asserts that at the point of switchover, both samplers are
      # working (not raising an error or returning nan) and returning the
      # expected moments.
      use_gpu = test.is_gpu_available()
      stddev_inside_bounds_before_using_randn = (
          _get_stddev_inside_bounds_before_using_randn(use_gpu)
      )
  
      epsilon = 0.001
      self.validateMoments(
          shape=[int(1e6)],
          mean=0.0,
          stddev=1.0,
          minval=-epsilon,
          maxval=stddev_inside_bounds_before_using_randn - epsilon,
      )
      self.validateMoments(
          shape=[int(1e6)],
          mean=0.0,
          stddev=1.0,
          minval=-epsilon,
          maxval=stddev_inside_bounds_before_using_randn + epsilon,
      )
  
      self.validateMoments(
          shape=[int(1e6)],
          mean=0.0,
          stddev=1.0,
          minval=-epsilon,
          maxval=stddev_inside_bounds_before_using_randn - epsilon,
          use_stateless=True,
      )
      self.validateMoments(
          shape=[int(1e6)],
          mean=0.0,
          stddev=1.0,
          minval=-epsilon,
          maxval=stddev_inside_bounds_before_using_randn + epsilon,
          use_stateless=True,
      )
  
imports: import functools
  import math
  import timeit
  import numpy
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.python.client import session
  from tensorflow.python.eager import backprop
  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 control_flow_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import stateless_random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 16 for calling the ParameterizedTruncatedNormalTest obj's underlying member method code with example usage: obj.testSamplingAtRandnSwitchover() without return types