class_docstr: Sorted items view is a dynamic view of the sorted dict's items.
  
  When the sorted dict's items change, the view reflects those changes.
  
  The items view implements the set and sequence abstract base classes.
class_docstr_tok: ["Sorted","items","view","is","a","dynamic","view","of","the","sorted","dict","'s","items",".","When","the","sorted","dict","'s","items","change",",","the","view","reflects","those","changes",".","The","items","view","implements","the","set","and","sequence","abstract","base","classes","."]
docstr: Lookup item at `index` in sorted items view.
  
  ``siv.__getitem__(index)`` <==> ``siv[index]``
  
  Supports slicing.
  
  Runtime complexity: `O(log(n))` -- approximate.
  
  >>> sd = SortedDict({'a': 1, 'b': 2, 'c': 3})
  >>> siv = sd.items()
  >>> siv[0]
  ('a', 1)
  >>> siv[-1]
  ('c', 3)
  >>> siv[:]
  [('a', 1), ('b', 2), ('c', 3)]
  >>> siv[100]
  Traceback (most recent call last):
    ...
  IndexError: list index out of range
  
  :param index: integer or slice for indexing
  :return: item or list of items
  :raises IndexError: if index out of range
docstr_tok: ["Lookup","item","at","`","index","`","in","sorted","items","view",".","``","siv.__getitem__","(","index",")","``","<","==",">","``","siv","[","index","]","``","Supports","slicing",".","Runtime","complexity",":","`","O","(","log","(","n",")",")","`","--","approximate",".",">",">",">","sd","=","SortedDict","(","{","'","a","'",":","1",",","'","b","'",":","2",",","'","c","'",":","3","}",")",">",">",">","siv","=","sd.items","(",")",">",">",">","siv","[","0","]","(","'","a","'",",","1",")",">",">",">","siv","[","-1","]","(","'","c","'",",","3",")",">",">",">","siv","[",":","]","[","(","'","a","'",",","1",")",",","(","'","b","'",",","2",")",",","(","'","c","'",",","3",")","]",">",">",">","siv","[","100","]","Traceback","(","most","recent","call","last",")",":","...","IndexError",":","list","index","out","of","range",":","param","index",":","integer","or","slice","for","indexing",":","return",":","item","or","list","of","items",":","raises","IndexError",":","if","index","out","of","range"]
code: def __getitem__(self, index):
      """Lookup item at `index` in sorted items view.
  
      ``siv.__getitem__(index)`` <==> ``siv[index]``
  
      Supports slicing.
  
      Runtime complexity: `O(log(n))` -- approximate.
  
      >>> sd = SortedDict({'a': 1, 'b': 2, 'c': 3})
      >>> siv = sd.items()
      >>> siv[0]
      ('a', 1)
      >>> siv[-1]
      ('c', 3)
      >>> siv[:]
      [('a', 1), ('b', 2), ('c', 3)]
      >>> siv[100]
      Traceback (most recent call last):
        ...
      IndexError: list index out of range
  
      :param index: integer or slice for indexing
      :return: item or list of items
      :raises IndexError: if index out of range
  
      """
      _mapping = self._mapping
      _mapping_list = _mapping._list
  
      if isinstance(index, slice):
          keys = _mapping_list[index]
          return [(key, _mapping[key]) for key in keys]
  
      key = _mapping_list[index]
      return key, _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 2 for calling the SortedItemsView obj's underlying member method code with example usage: obj.__getitem__(index) and returns: key,  _mapping, unknown