code: def setdefault (self, key, def_val=None):
          
          if key in self:
              return self[key]
          self[key] = def_val
          return def_val
docs: Update key usage if found and return value, else set and return
          default.