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: Adds `value` to the list of items associated to ``key``.
  
  Example:
  
      >>> d = multidict()
      >>> d.add("spam", "ham")
      >>> d["spam"]
      'ham'
      >>> d.add("spam", "eggs")
      >>> d.getlist("spam")
      ['ham', 'eggs']
docstr_tok: ["Adds","`","value","`","to","the","list","of","items","associated","to","``","key","``",".","Example",":",">",">",">","d","=","multidict","(",")",">",">",">","d.add","(","``","spam","''",",","``","ham","''",")",">",">",">","d","[","``","spam","''","]","'ham'",">",">",">","d.add","(","``","spam","''",",","``","eggs","''",")",">",">",">","d.getlist","(","``","spam","''",")","[","'ham","'",",","'eggs","'","]"]
code: def add(self, key, value):
      """Adds `value` to the list of items associated to ``key``.
  
      Example:
  
          >>> d = multidict()
          >>> d.add("spam", "ham")
          >>> d["spam"]
          'ham'
          >>> d.add("spam", "eggs")
          >>> d.getlist("spam")
          ['ham', 'eggs']
      """
      try:
          self._dict[key].append(value)
      except KeyError:
          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 8 for calling the multidict obj's underlying member method code with example usage: obj.add(key, value) without return types