docstr: Number of hypotheses in the list.
docstr_tok: ["Number","of","hypotheses","in","the","list","."]
code: def __len__(self):
      """
      Number of hypotheses in the list.
      """
      return len(self.hyp)
  
file_path: fastNLP/fastNLP/modules/torch/generator/seq2seq_generator.py
imports: import torch
  from torch import nn
  import torch.nn.functional
  from ..decoder.seq2seq_decoder import Seq2SeqDecoder, State
  from functools import partial
label_desc: Use image node_id 2 for calling the BeamHypotheses obj's underlying member method code with example usage: obj.__len__() and returns: len