class_docstr: A dictionary-like object that is customized to deal with multiple
  values for the same key.
  
  Each value in this dictionary will be a list. Methods which emulate
  the methods of a standard Python ``dict`` object will return or manipulate
  the first items of the lists only. Special methods are provided to
  deal with keys having multiple values.
class_docstr_tok: ["A","dictionary-like","object","that","is","customized","to","deal","with","multiple","values","for","the","same","key",".","Each","value","in","this","dictionary","will","be","a","list",".","Methods","which","emulate","the","methods","of","a","standard","Python","``","dict","``","object","will","return","or","manipulate","the","first","items","of","the","lists","only",".","Special","methods","are","provided","to","deal","with","keys","having","multiple","values","."]
docstr: Returns an arbitrary item associated to the given key. Raises ``KeyError``
  if no such key exists.
  
  Example:
  
      >>> d = multidict([("spam", "eggs"), ("spam", "bacon")])
      >>> d["spam"]
      'eggs'
docstr_tok: ["Returns","an","arbitrary","item","associated","to","the","given","key",".","Raises","``","KeyError","``","if","no","such","key","exists",".","Example",":",">",">",">","d","=","multidict","(","[","(","``","spam","''",",","``","eggs","''",")",",","(","``","spam","''",",","``","bacon","''",")","]",")",">",">",">","d","[","``","spam","''","]","'eggs","'"]
code: def __getitem__(self, key):
      """Returns an arbitrary item associated to the given key. Raises ``KeyError``
      if no such key exists.
  
      Example:
  
          >>> d = multidict([("spam", "eggs"), ("spam", "bacon")])
          >>> d["spam"]
          'eggs'
      """
      try:
          return self._dict[key][0]
      except IndexError:
          raise KeyError(key) from None
  
imports: from contextlib import contextmanager
  from collections.abc import MutableMapping
  from itertools import chain
  from warnings import warn
  import os
  import tempfile
label_desc: Use image node_id 4 for calling the multidict obj's underlying member method code with example usage: obj.__getitem__(key) and returns: self