code: def setdefault(self, key, default=None):
          
          identity = self._title(key)
          for i, k, v in self._impl._items:
              if i == identity:
                  return v
          self.add(key, default)
          return default
docs: Return value for key, set value to default if key is not present.