code: def _check_key(self, key):
          
          self.setup_schema()
          if key not in self._attrs and key not in self:
              raise KeyError(key)
docs: Ensure key is either in schema's attributes or already set on self.