code: def test_randint_forward(seed, ctx, func_name, low, high, shape):
      with nn.context_scope(ctx):
          o = F.randint(low, high, shape, seed=seed)
      assert o.shape == tuple(shape)
      assert o.parent.name == func_name
      o.forward()
      # NOTE: The following should be < high,
      # but use <= high because std::uniform_random contains a bug.
      assert np.all(o.d <= high)
      assert np.all(o.d >= low)
  
      # Checking recomputation
      func_args = [low, high, shape, seed]
      recomputation_test(
          rng=None,
          func=F.randint,
          vinputs=[],
          func_args=func_args,
          func_kwargs={},
          ctx=ctx,
      )
  
file_path: nnabla/python/test/function/test_random_functions.py
imports: import pytest
  import numpy
  import nnabla
  import nnabla.functions
  from nbla_test_utils import list_context, recomputation_test
  import platform
label_desc: Use image node_id 2 for calling a global function with example usage: test_randint_forward(seed, ctx, func_name, low, high, shape) without return types