class_docstr: Batch beam search implementation.
docstr: Revert batch to list.
docstr_tok: ["Revert","batch","to","list","."]
code: def unbatchfy(self, batch_hyps: BatchHypothesis) -> List[Hypothesis]:
      """Revert batch to list."""
      return [
          Hypothesis(
              yseq=batch_hyps.yseq[i][: batch_hyps.length[i]],
              score=batch_hyps.score[i],
              scores={k: batch_hyps.scores[k][i] for k in self.scorers},
              states={
                  k: v.select_state(batch_hyps.states[k], i)
                  for k, v in self.scorers.items()
              },
              hs=batch_hyps.hs[i] if self.return_hs else [],
          )
          for i in range(len(batch_hyps.length))
      ]
  
imports: import logging
  from typing import Any, Dict, List, NamedTuple, Tuple
  import torch
  from packaging.version import parse
  from torch.nn.utils.rnn import pad_sequence
  from espnet.nets.beam_search import BeamSearch, Hypothesis
label_desc: Use image node_id 4 for calling the BatchBeamSearch obj's underlying member method code with example usage: obj.unbatchfy(batch_hyps) and returns: unknown