class_docstr: The scansion symbols used can be configured by passing a suitable constants class to
  the constructor.
docstr: Helper method; make sure that the verse object is properly packaged.
  
  :param verse:
  :param candidate:
  :return:
docstr_tok: ["Helper","method",";","make","sure","that","the","verse","object","is","properly","packaged",".",":","param","verse",":",":","param","candidate",":",":","return",":"]
code: def assign_candidate(self, verse: Verse, candidate: str) -> Verse:
      """
      Helper method; make sure that the verse object is properly packaged.
  
      :param verse:
      :param candidate:
      :return:
      """
      verse.scansion = candidate
      verse.valid = True
      verse.accented = self.formatter.merge_line_scansion(
          verse.original, verse.scansion
      )
      return verse
  
imports: import logging
  import re
  from typing import Any, Dict, List
  import cltk.prosody.lat.string_utils
  from cltk.prosody.lat.metrical_validator import MetricalValidator
  from cltk.prosody.lat.scansion_constants import ScansionConstants
  from cltk.prosody.lat.scansion_formatter import ScansionFormatter
  from cltk.prosody.lat.syllabifier import Syllabifier
  from cltk.prosody.lat.verse import Verse
label_desc: Use image node_id 12 for calling the VerseScanner obj's underlying member method code with example usage: obj.assign_candidate(verse, candidate) and returns: verse