code: def create_rng_state(seed, alg):
      """Creates a RNG state from an integer or a vector.
  
      Example:
  
      >>> tf.random.create_rng_state(
      ...     1234, "philox")
      <tf.Tensor: shape=(3,), dtype=int64, numpy=array([1234,    0,    0])>
      >>> tf.random.create_rng_state(
      ...     [12, 34], "threefry")
      <tf.Tensor: shape=(2,), dtype=int64, numpy=array([12, 34])>
  
      Args:
        seed: an integer or 1-D numpy array.
        alg: the RNG algorithm. Can be a string, an `Algorithm` or an integer.
  
      Returns:
        a 1-D numpy array whose size depends on the algorithm.
      """
      alg = random_ops_util.convert_alg_to_int(alg)
      return _make_state_from_seed(seed, alg)
  
imports: from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.distribute import sharded_variable
  from tensorflow.python.distribute import values_util
  from tensorflow.python.eager import context
  from tensorflow.python.framework import config
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import gen_stateful_random_ops
  from tensorflow.python.ops import gen_stateless_random_ops_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops_util
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import stateless_random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.trackable import autotrackable
  from tensorflow.python.util import nest
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 8 for calling a global function with example usage: create_rng_state(seed, alg) and returns: _make_state_from_seed