code: def random_integer(shape, dtype, minval, maxval, seed):
      """Generates a sample from uniform distribution over [minval, maxval)."""
      if _is_stateful_seed(seed):
          return tf.random.uniform(
              shape=shape,
              dtype=dtype,
              minval=minval,
              maxval=maxval,
              seed=seed,
          )
      else:
          return tf.random.stateless_uniform(
              shape=shape,
              dtype=dtype,
              minval=minval,
              maxval=maxval,
              seed=seed,
          )
  
imports: import functools
  import numpy
  import six
  import tensorflow.compat.v2
  from tensorflow.python.util import nest
label_desc: Use image node_id 12 for calling a global function with example usage: random_integer(shape, dtype, minval, maxval, seed) and returns: tf, tf