code: def test_bool_scatter_forward_backward(
      seed, ctx, func_name, gshape, mask_shape
  ):
      from nbla_test_utils import cap_ignore_region, function_tester
  
      rng = np.random.RandomState(seed)
      gdata0 = rng.randn(*gshape).astype(np.float32)
      mask = rng.randint(0, 2, size=mask_shape)
      sdata = gdata0[mask.astype(bool)]
  
      inputs = [sdata, mask]
      backward = [True, False]
  
      function_tester(
          rng,
          F.bool_scatter,
          ref_bool_scatter,
          inputs,
          ctx=ctx,
          func_name=func_name,
          func_args=[],
          backward=backward,
      )
  
file_path: nnabla/python/test/function/test_bool_scatter.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_scatter_forward_backward(seed, ctx, func_name, gshape, mask_shape) without return types