class_docstr: Simple, type-checked, dict-like container for holding repeated scalars.
class_docstr_tok: ["Simple",",","type-checked",",","dict-like","container","for","holding","repeated","scalars","."]
code: def __getitem__(self, key):
      try:
          return self._values[key]
      except KeyError:
          key = self._key_checker.CheckValue(key)
          val = self._value_checker.DefaultValue()
          self._values[key] = val
          return val
  
imports: import collections
  import sys
label_desc: Use image node_id 2 for calling the ScalarMap obj's underlying member method code with example usage: obj.__getitem__(key) and returns: self, val