code: def as_dictionary(self):
          
          values = {
              'id': self._id,
              'type': self._type
          }
  
          if self._owner:
              values['owner'] = self._owner
          return values
docs: Return the key as a python dictionary.