code: def rand_unif(dtype, dims):
      if np.dtype(dtype).kind == "f":
          return np.random.uniform(-1, 1, dims).astype(dtype)
      else:
          iinfo = np.iinfo(dtype)
          return np.around(
              np.random.uniform(iinfo.min, iinfo.max, dims)
          ).clip(iinfo.min, iinfo.max)
  
imports: from __future__ import print_function
  import numpy
  import itertools
  import pytest
  from utils import tensors_allclose, allclose_with_out
label_desc: Use image node_id 8 for calling a global function with example usage: rand_unif(dtype, dims) and returns: np, np