docstr: Test that op-seed selection is not sensitive to trivial changes.
  
  Test that op-seed selection is not sensitive to trivial computation
  (i.e. graph) changes.
  
  Fixing b/32087099
code: def testOpSeedSelectionNotSensitive(self):
      """Test that op-seed selection is not sensitive to trivial changes.
  
      Test that op-seed selection is not sensitive to trivial computation
      (i.e. graph) changes.
  
      Fixing b/32087099
      """
  
      def f(include_print):
          shape = constant_op.constant([5])
          if include_print:
              shape = logging_ops.Print(shape, [shape])
          return random.get_global_generator().normal(shape)
  
      def compare(fst_includes_print, snd_includes_print):
          random.get_global_generator().reset_from_seed(50)
          fst = f(fst_includes_print)
          random.get_global_generator().reset_from_seed(50)
          snd = f(snd_includes_print)
          self.assertAllEqual(fst, snd)
          # Now do the above again using accelerated (defunned) 'f'.
          # Running 'f' with two different Boolean arguments should cause
          # two different graphs to be generated, hence demonstrating the
          # insensitivity to graph changes.
          f_acc = def_function.function(f)
          random.get_global_generator().reset_from_seed(50)
          fst = f_acc(fst_includes_print)
          random.get_global_generator().reset_from_seed(50)
          snd = f_acc(snd_includes_print)
          self.assertAllEqual(fst, snd)
  
      compare(False, False)
      compare(True, True)
      compare(True, False)
  
imports: import os
  import re
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import config
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  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_random_ops
  from tensorflow.python.ops import gen_stateful_random_ops
  from tensorflow.python.ops import logging_ops
  from tensorflow.python.ops import random_ops_util
  from tensorflow.python.ops import stateful_random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 20 for calling the StatefulRandomOpsTest obj's underlying member method code with example usage: obj.testOpSeedSelectionNotSensitive() and returns: random