code: def array_from_sparse(indices, data, target_shape):
      """Create an array of given shape, with values at specific indices.
  
      The rest of the array will be filled with zeros.
  
      Parameters
      ----------
      indices : iterable(tuple(int))
          Index of each element which will be assigned a specific value.
      data : iterable(scalar)
          Value associated at each index.
      target_shape : tuple(int)
          Shape of the output array.
  
      Returns
      -------
      a : array, shape=target_shape
          Array of zeros with specified values assigned to specified indices.
      """
      data = array(data)
      out = zeros(target_shape, dtype=data.dtype)
      out.put(
          _np.ravel_multi_index(_np.array(indices).T, target_shape),
          data,
      )
      return out
  
imports: from ._dispatch import BACKEND_NAME, _common
  from ._dispatch import numpy
label_desc: Use image node_id 17 for calling a global function with example usage: array_from_sparse(indices, data, target_shape) and returns: out