code: def int_cases(shape_dtypes=(None,), minval_maxval=None):
      def wrap(
          op: ops.Operation,
          minval,
          maxval,
          shape,
          shape_dtype,
          dtype,
          seed,
          **kwargs,
      ):
          shape_ = (
              constant_op.constant(shape, dtype=shape_dtype)
              if shape_dtype is not None
              else shape
          )
          return op(
              seed=seed,
              shape=shape_,
              minval=minval,
              maxval=maxval,
              dtype=dtype,
              **kwargs,
          )
  
      if minval_maxval is None:
          minval_maxval = ((2, 11111),)
      for minval, maxval in minval_maxval:
          for shape_dtype in shape_dtypes:
              for shape in (), (3,), (2, 5):
                  for dtype in dtypes.int32, dtypes.int64:
                      yield (
                          "uniform_%s_%s" % (minval, maxval),
                          functools.partial(
                              wrap,
                              stateless.stateless_random_uniform,
                              minval,
                              maxval,
                              shape,
                              shape_dtype,
                              dtype,
                          ),
                          functools.partial(
                              wrap,
                              random_ops.random_uniform,
                              minval,
                              maxval,
                              shape,
                              shape_dtype,
                              dtype,
                          ),
                      )
  
imports: import functools
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.compat import compat
  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 ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import gen_stateless_random_ops_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import stateless_random_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling a global function with example usage: int_cases(shape_dtypes, minval_maxval) and returns: op