code: def testAlg(self, name, int_id, enum_id):
      g_by_name = random.Generator.from_seed(1234, name)
      g_by_int = random.Generator.from_seed(1234, int_id)
      g_by_enum = random.Generator.from_seed(1234, enum_id)
      self.assertEqual(g_by_name.algorithm, g_by_int.algorithm)
      self.assertEqual(g_by_name.algorithm, g_by_enum.algorithm)
      if enum_id == random_ops_util.Algorithm.THREEFRY:
          # We don't have CPU/GPU kernels for ThreeFry yet.
          return
      shape = [3]
      output_by_name = g_by_name.normal(shape)
      output_by_int = g_by_int.normal(shape)
      output_by_enum = g_by_enum.normal(shape)
      self.assertAllEqual(output_by_name, output_by_int)
      self.assertAllEqual(output_by_name, output_by_enum)
  
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 13 for calling the StatefulRandomOpsTest obj's underlying member method code with example usage: obj.testAlg(name, int_id, enum_id) without return types