code: def _set_nd_advanced_indexing(self, key, value):
          
          indices = self._get_index_nd(key)
          vshape = _get_oshape_of_gather_nd_op(self.shape, indices.shape)
          value_nd = self._prepare_value_nd(value, vshape)
          _internal._scatter_set_nd(lhs=self, rhs=value_nd, indices=indices,
                                    shape=self.shape, out=self)
docs: This function is called by __setitem__ when key is an advanced index.