docstr: Tests that op-seed selection is reset after reseting global generator.
  
  Fixing GitHub issue 9171:
  https://github.com/tensorflow/tensorflow/issues/9171
code: def testOpSeedSelectionAfterSetSeed(self):
      """Tests that op-seed selection is reset after reseting global generator.
  
      Fixing GitHub issue 9171:
      https://github.com/tensorflow/tensorflow/issues/9171
      """
      shape = (3,)
      random.get_global_generator().reset_from_seed(1)
      a = random.get_global_generator().normal(shape)
      random.get_global_generator().reset_from_seed(1)
      b = random.get_global_generator().normal(shape)
      self.assertAllEqual(a, b)
  
      # Now do the above again using accelerated ('defun'ed) computation
      @def_function.function
      def f():
          return random.get_global_generator().normal(shape)
  
      random.get_global_generator().reset_from_seed(1)
      c = f()
      random.get_global_generator().reset_from_seed(1)
      d = f()
      self.assertAllEqual(c, d)
      self.assertAllEqual(a, c)
  
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 19 for calling the StatefulRandomOpsTest obj's underlying member method code with example usage: obj.testOpSeedSelectionAfterSetSeed() and returns: random