code: def get_key_counter_alg(seed, alg):
      """Calculates the key, counter and algorithm to pass to raw RNG ops.
  
      This function calculates the key and counter, and determines the algorithm
      that will be passed to the raw RNG ops like `StatelessRandomUniformV2`.
      Depending on the input `alg`, the key and counter may be scrambled or copied
      from `seed`. If `alg` is `"auto_select"`, the key and counter will be
      determined at runtime based on device type.
  
      Args:
        seed: An integer tensor of shape [2]. The seed to calculate the key and
          counter from.
        alg: The RNG algorithm. See `tf.random.stateless_uniform` for an
          explanation.
  
      Returns:
        A pair (key, counter, algorithm) suitable for V2 stateless RNG ops like
        `StatelessRandomUniformV2`.
      """
      if alg is None:
          alg = Algorithm.AUTO_SELECT.value
      alg = convert_alg_to_int(alg)
      key, counter = _get_key_counter(seed, alg)
      return key, counter, alg
  
file_path: tensorflow/tensorflow/python/ops/random_ops_util.py
imports: import enum
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  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 bitwise_ops
  from tensorflow.python.ops import gen_stateless_random_ops_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 3 for calling a global function with example usage: get_key_counter_alg(seed, alg) and returns: key,  counter,  alg