class_docstr: information about the beams at specific time-step
class_docstr_tok: ["information","about","the","beams","at","specific","time-step"]
docstr: return beam-labelings, sorted by probability
docstr_tok: ["return","beam-labelings",",","sorted","by","probability"]
code: def sort(self):
      "return beam-labelings, sorted by probability"
      beams = [v for (_, v) in self.entries.items()]
      sortedBeams = sorted(
          beams, reverse=True, key=lambda x: x.prTotal * x.prText
      )
      return [x.labeling for x in sortedBeams]
  
imports: import torch
  import pickle
  import numpy
label_desc: Use image node_id 3 for calling the BeamState obj's underlying member method code with example usage: obj.sort() and returns: unknown