code: def test_bool_gather_double_backward(
      seed, ctx, func_name, gshape, mask_shape
  ):
      from nbla_test_utils import backward_function_tester
  
      rng = np.random.RandomState(seed)
      gdata = rng.randn(*gshape).astype(np.float32)
      mask = rng.randint(0, 2, size=mask_shape)
      inputs = [gdata, mask]
  
      backward_function_tester(
          rng,
          F.bool_gather,
          inputs,
          ctx=ctx,
          backward=[True, False],
          backward_b=[True, True, False],
          auto_forward=True,
      )
  
file_path: nnabla/python/test/function/test_bool_gather.py
imports: import pytest
  import numpy
  import nnabla
  import nnabla.functions
  from nbla_test_utils import list_context
label_desc: Use image node_id 3 for calling a global function with example usage: test_bool_gather_double_backward(seed, ctx, func_name, gshape, mask_shape) without return types