code: def randint(
      low, high=None, size=None, dtype=onp.int64
  ):  # pylint: disable=missing-function-docstring
      low = int(low)
      if high is None:
          high = low
          low = 0
      if size is None:
          size = ()
      elif isinstance(size, int):
          size = (size,)
      dtype_orig = dtype
      dtype = np_utils.result_type(dtype)
      accepted_dtypes = (onp.int32, onp.int64)
      if dtype not in accepted_dtypes:
          raise ValueError(
              f"Argument `dtype` got an invalid value {dtype_orig}. Only those "
              f"convertible to {accepted_dtypes} are supported."
          )
      return random_ops.random_uniform(
          shape=size, minval=low, maxval=high, dtype=dtype
      )
  
file_path: tensorflow-upstream/tensorflow/python/ops/numpy_ops/np_random.py
imports: import numpy
  from tensorflow.python.framework import random_seed
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops.numpy_ops import np_array_ops
  from tensorflow.python.ops.numpy_ops import np_dtypes
  from tensorflow.python.ops.numpy_ops import np_utils
  from tensorflow.python.util import tf_export
label_desc: Use image node_id 8 for calling a global function with example usage: randint(low, high, size, dtype) and returns: random_ops