def METHOD_NAME(self, key, index, value):
    target = self._get_mutation_target(key)
    if isinstance(index, tuple):
        if isinstance(index[0], tuple):
            index = tuple(slice(*e) for e in index)
        else:
            index = slice(*index)
    setitem(target, index, value)