code: def get(self, key, default_val=None, require_value=False):
          
          val = dict.get(self, key, default_val)
          if val is None and require_value:
              raise KeyError('key "%s" not found' % key)
          if isinstance(val, dict):
              return AttributeDict(val)
          return val
docs: Returns a dictionary value