code: def ref_bool_scatter(sdata, mask):
      gdata_shape = mask.shape + sdata.shape[1:]
      mask_bool = mask.astype(bool)
      gdata = np.zeros(gdata_shape)
      gdata[mask_bool] = sdata
      return gdata
  
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 1 for calling a global function with example usage: ref_bool_scatter(sdata, mask) and returns: gdata