code: def uniform(
      shape, dtype, low=None, high=None, *, random_state=numpy.random
  ):
      kind = numpy.dtype(dtype).kind
      if kind == "f":
          return random_state.uniform(
              -1 if low is None else low,
              1 if high is None else high,
              shape,
          ).astype(dtype, copy=False)
      if kind == "u":
          return random_state.randint(
              0 if low is None else low,
              4 if high is None else high,
              size=shape,
              dtype=dtype,
          )
      if kind == "i":
          return random_state.randint(
              -2 if low is None else low,
              3 if high is None else high,
              size=shape,
              dtype=dtype,
          )
      if kind == "b":
          return random_state.randint(
              0 if low is None else low,
              2 if high is None else high,
              size=shape,
              dtype=dtype,
          )
      assert False, dtype
  
file_path: chainer/tests/chainerx_tests/array_utils.py
imports: import functools
  import operator
  import numpy
  import chainerx
label_desc: Use image node_id 2 for calling a global function with example usage: uniform(shape, dtype, low, high) and returns: random_state, random_state, random_state, random_state