code: def scatter_nd(data, indices, shape):
      indices = (
          indices.tolist()
          if isinstance(indices, np.ndarray)
          else indices
      )
      result = np.zeros(shape, dtype=data.dtype)
      result[tuple(indices)] = data
      return result
  
imports: import pytest
  import numpy
  import nnabla.functions
  from nbla_test_utils import list_context, function_tester
label_desc: Use image node_id 1 for calling a global function with example usage: scatter_nd(data, indices, shape) and returns: result