code: def assign_candidate(self, verse: Verse, candidate: str) -> Verse:
          
          verse.scansion = candidate
          verse.valid = True
          verse.accented = self.formatter.merge_line_scansion(
              verse.original, verse.scansion)
          return verse
docs: Helper method; make sure that the verse object is properly packaged.
  
          :param verse:
          :param candidate:
          :return: