class_docstr: Beam search 
class_docstr_tok: ["Beam","search"]
docstr: Sort the scores.
docstr_tok: ["Sort","the","scores","."]
code: def sort_scores(self):
      "Sort the scores."
      return self.scores, paddle.to_tensor(
          [i for i in range(int(self.scores.shape[0]))], dtype="int32"
      )
  
imports: import math
  import paddle
  from paddle import nn
  import paddle.nn.functional
  from paddle.nn import LayerList
  from paddle.nn import Dropout, Linear, LayerNorm
  import numpy
  from ppocr.modeling.backbones.rec_svtrnet import Mlp, zeros_, ones_
  from paddle.nn.initializer import XavierNormal
label_desc: Use image node_id 6 for calling the Beam obj's underlying member method code with example usage: obj.sort_scores() and returns: self,  paddle