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: Sets the item associated to the given ``key``. Any values associated to the
  key will be erased and replaced by ``value``.
  
  Example:
  
     >>> d = multidict([("spam", "eggs"), ("spam", "bacon")])
     >>> d["spam"] = "ham"
     >>> d["spam"]
     'ham'
docstr_tok: ["Sets","the","item","associated","to","the","given","``","key","``",".","Any","values","associated","to","the","key","will","be","erased","and","replaced","by","``","value","``",".","Example",":",">",">",">","d","=","multidict","(","[","(","``","spam","''",",","``","eggs","''",")",",","(","``","spam","''",",","``","bacon","''",")","]",")",">",">",">","d","[","``","spam","''","]","=","``","ham","''",">",">",">","d","[","``","spam","''","]","'ham","'"]
code: def __setitem__(self, key, value):
      """Sets the item associated to the given ``key``. Any values associated to the
      key will be erased and replaced by ``value``.
  
      Example:
  
         >>> d = multidict([("spam", "eggs"), ("spam", "bacon")])
         >>> d["spam"] = "ham"
         >>> d["spam"]
         'ham'
      """
      self._dict[key] = [value]
  
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 7 for calling the multidict obj's underlying member method code with example usage: obj.__setitem__(key, value) without return types