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: from __future__ import print_function
  import torch
  import pickle
  import numpy
  import math
  import cv2
  from PIL import Image, JpegImagePlugin
  from scipy import ndimage
  import hashlib
  import sys, os
  from zipfile import ZipFile
  from .imgproc import loadImage
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