code: def test_min_with_index(
      seed, ctx, func_name, inshape, axis, keepdims
  ):
      x = np.random.RandomState(seed).randn(*inshape).astype(np.float32)
      x = nn.Variable.from_numpy_array(x)
  
      # with_index
      with nn.context_scope(ctx), nn.auto_forward(True):
          val, idx = F.min(x, axis, keepdims, with_index=True)
      assert_allclose(val.d, np.amin(x.d, axis, keepdims=keepdims))
      assert np.all(idx.d == argmin(x.d, axis).reshape(idx.d.shape))
  
      # only_index
      with nn.context_scope(ctx), nn.auto_forward(True):
          idx = F.min(x, axis, keepdims, only_index=True)
      assert np.all(idx.d == argmin(x.d, axis).reshape(idx.d.shape))
  
file_path: nnabla/python/test/function/test_reduction.py
imports: import pytest
  import numpy
  import nnabla
  import nnabla.functions
  from nnabla.testing import assert_allclose
  from nbla_test_utils import function_tester, list_context, list_ctx_and_func_name
label_desc: Use image node_id 8 for calling a global function with example usage: test_min_with_index(seed, ctx, func_name, inshape, axis, keepdims) without return types