docstr: Initialize n-best list of hypotheses.
docstr_tok: ["Initialize","n-best","list","of","hypotheses","."]
code: def __init__(
      self, num_beams, length_penalty=1.0, early_stopping=False
  ):
      """
      Initialize n-best list of hypotheses.
      """
      self.length_penalty = length_penalty
      self.early_stopping = early_stopping
      self.num_beams = num_beams
      self.beams = []
      self.worst_score = 1e9
  
label_desc: Use image node_id 1 to create a new BeamHypotheses object from inherited base classes: object with example: obj = BeamHypotheses(num_beams, length_penalty, early_stopping)