docstr: Allows to set items to MutableDenseNDimArray.
  
  Examples
  ========
  
  >>> from sympy import MutableDenseNDimArray
  >>> a = MutableDenseNDimArray.zeros(2,  2)
  >>> a[0,0] = 1
  >>> a[1,1] = 1
  >>> a
  [[1, 0], [0, 1]]
docstr_tok: ["Allows","to","set","items","to","MutableDenseNDimArray",".","Examples","========",">",">",">","from","sympy","import","MutableDenseNDimArray",">",">",">","a","=","MutableDenseNDimArray.zeros","(","2",",","2",")",">",">",">","a","[","0,0","]","=","1",">",">",">","a","[","1,1","]","=","1",">",">",">","a","[","[","1",",","0","]",",","[","0",",","1","]","]"]
code: def __setitem__(self, index, value):
      """Allows to set items to MutableDenseNDimArray.
  
      Examples
      ========
  
      >>> from sympy import MutableDenseNDimArray
      >>> a = MutableDenseNDimArray.zeros(2,  2)
      >>> a[0,0] = 1
      >>> a[1,1] = 1
      >>> a
      [[1, 0], [0, 1]]
  
      """
      if isinstance(index, tuple) and any(
          isinstance(i, slice) for i in index
      ):
          (
              value,
              eindices,
              slice_offsets,
          ) = self._get_slice_data_for_array_assignment(index, value)
          for i in eindices:
              other_i = [
                  ind - j
                  for ind, j in zip(i, slice_offsets)
                  if j is not None
              ]
              self._array[self._parse_index(i)] = value[other_i]
      else:
          index = self._parse_index(index)
          self._setter_iterable_check(value)
          value = _sympify(value)
          self._array[index] = value
  
imports: import functools
  from typing import List
  from sympy.core.basic import Basic
  from sympy.core.containers import Tuple
  from sympy.core.singleton import S
  from sympy.core.sympify import _sympify
  from sympy.tensor.array.mutable_ndim_array import MutableNDimArray
  from sympy.tensor.array.ndim_array import NDimArray, ImmutableNDimArray, ArrayKind
  from sympy.utilities.iterables import flatten
label_desc: Use image node_id 3 for calling the MutableDenseNDimArray obj's underlying member method code with example usage: obj.__setitem__(index, value) without return types