code: def get_publisher_doc(self):
          
          with self.draft_context():
              # Select the draft document from the database
              draft = self.one(Q._uid == self._uid)
              publisher_doc = draft._document
  
              # Remove any keys from the document that should not be transferred
              # when publishing.
              self._remove_keys(publisher_doc, self._unpublished_fields)
  
          return publisher_doc
docs: Return a publish safe version of the frame's document