code: def scatter(indices, values, shape):
      indices = convert_to_tensor(indices)
      values = convert_to_tensor(values)
      zeros = np.zeros(shape, dtype=values.dtype)
  
      index_length = indices.shape[-1]
      value_shape = shape[index_length:]
      indices = np.reshape(indices, [-1, index_length])
      values = np.reshape(values, [-1] + list(value_shape))
  
      for i in range(indices.shape[0]):
          index = indices[i]
          zeros[tuple(index)] += values[i]
      return zeros
  
imports: import numpy
  import tree
  from keras.backend.common import KerasVariable
  from keras.backend.common import standardize_dtype
  from keras.backend.common.dtypes import result_type
  from keras.backend.common.keras_tensor import KerasTensor
  from keras.backend.common.stateless_scope import StatelessScope
  from keras.utils.nest import pack_sequence_as
label_desc: Use image node_id 9 for calling a global function with example usage: scatter(indices, values, shape) and returns: zeros