code: def test_forward_backward(
      seed, xshape, ishape, axis, batch_dims, ctx, func_name
  ):
      rng = np.random.RandomState(seed)
      x = rng.randn(*xshape).astype(np.float32)
      indices = rng.randint(0, xshape[axis], ishape)
      inputs = [x, indices]
      func_args = [axis, batch_dims]
      function_tester(
          rng,
          F.gather,
          gather,
          inputs,
          func_name=func_name,
          func_args=func_args,
          ctx=ctx,
          backward=[True, False],
          disable_half_test=False,
      )
  
imports: import pytest
  import numpy
  import nnabla.functions
  from nbla_test_utils import list_context, function_tester
label_desc: Use image node_id 2 for calling a global function with example usage: test_forward_backward(seed, xshape, ishape, axis, batch_dims, ctx, func_name) without return types