code: def _view_delitem(self, index):
      """Remove item at `index` from sorted dict.
  
      ``view.__delitem__(index)`` <==> ``del view[index]``
  
      Supports slicing.
  
      Runtime complexity: `O(log(n))` -- approximate.
  
      >>> sd = SortedDict({'a': 1, 'b': 2, 'c': 3})
      >>> view = sd.keys()
      >>> del view[0]
      >>> sd
      SortedDict({'b': 2, 'c': 3})
      >>> del view[-1]
      >>> sd
      SortedDict({'b': 2})
      >>> del view[:]
      >>> sd
      SortedDict({})
  
      :param index: integer or slice for indexing
      :raises IndexError: if index out of range
  
      """
      _mapping = self._mapping
      _list = _mapping._list
      dict_delitem = dict.__delitem__
      if isinstance(index, slice):
          keys = _list[index]
          del _list[index]
          for key in keys:
              dict_delitem(_mapping, key)
      else:
          key = _list.pop(index)
          dict_delitem(_mapping, key)
  
imports: import sys
  import warnings
  from itertools import chain
  from .sortedlist import SortedList, recursive_repr
  from .sortedset import SortedSet
label_desc: Use image node_id 1 for calling a global function with example usage: _view_delitem(index) without return types