def __setitem__(self, index, value):
        index = self._parse_index(index)
        if not isinstance(value, MutableNDimArray):
            value = _sympify(value)

        if isinstance(value, NDimArray):
            return NotImplementedError

        if value == 0 and index in self._sparse_array:
            self._sparse_array.pop(index)
        else:
            self._sparse_array[index] = value
Allows to set items to MutableDenseNDimArray.
dataset/ETHPy150Open sympy/sympy/sympy/tensor/array/sparse_ndim_array.py/MutableSparseNDimArray.__setitem__