code: def test_global_seed_generator(self):
      # Check that unseeded RNG calls use and update global_rng_state()
  
      def random_numbers(seed):
          rng_state = seed_generator.global_seed_generator().state
          rng_state.assign(seed)
          x = random.normal((), seed=None)
          y = random.normal((), seed=None)
          return x, y, rng_state.value
  
      if backend.backend() == "tensorflow":
          import tensorflow as tf
  
          random_numbers = tf.function(jit_compile=True)(random_numbers)
  
      seed = ops.zeros((2,))
      seed0 = ops.convert_to_numpy(seed)
      x1, y1, seed = random_numbers(seed)
      x1 = ops.convert_to_numpy(x1)
      y1 = ops.convert_to_numpy(y1)
      seed1 = ops.convert_to_numpy(seed)
      x2, y2, seed = random_numbers(seed)
      x2 = ops.convert_to_numpy(x2)
      y2 = ops.convert_to_numpy(y2)
      seed2 = ops.convert_to_numpy(seed)
      x3, y3, seed = random_numbers(seed)
      x3 = ops.convert_to_numpy(x3)
      y3 = ops.convert_to_numpy(y3)
      seed3 = ops.convert_to_numpy(seed)
  
      self.assertNotEqual(seed0[1], seed1[1])
      self.assertNotEqual(seed1[1], seed2[1])
      self.assertNotEqual(seed2[1], seed3[1])
  
      self.assertGreater(np.abs(x1 - y1), 1e-4)
      self.assertGreater(np.abs(x1 - y1), 1e-4)
      self.assertGreater(np.abs(x2 - y2), 1e-4)
      self.assertGreater(np.abs(x3 - y3), 1e-4)
      self.assertGreater(np.abs(x1 - x2), 1e-4)
      self.assertGreater(np.abs(x1 - x3), 1e-4)
      self.assertGreater(np.abs(x2 - x3), 1e-4)
      self.assertGreater(np.abs(y1 - y2), 1e-4)
      self.assertGreater(np.abs(y1 - y3), 1e-4)
      self.assertGreater(np.abs(y2 - y3), 1e-4)
  
      seed_generator.global_seed_generator().state.assign(seed)
  
imports: import numpy
  import pytest
  from absl.testing import parameterized
  import keras
  from keras import backend
  from keras import ops
  from keras import testing
  from keras.random import random
  from keras.random import seed_generator
  from keras.utils.rng_utils import set_random_seed
label_desc: Use image node_id 12 for calling the RandomTest obj's underlying member method code with example usage: obj.test_global_seed_generator() and returns: x,  y,  rng_state