code: def decode(self, probabilities):
      if self.params.blank_index == 0:
          probabilities = np.roll(probabilities, -1, axis=1)
      r = wordBeamSearch(
          probabilities,
          self.params.beam_width if self.params.beam_width > 0 else 25,
          self.language_model,
          False,
          allowWordToWordTransition=len(self.params.word_separator)
          == 0,
      )
      return self._prediction_from_string(probabilities, r)
  
imports: from .ctc_decoder import CTCDecoder
  import numpy
  from calamari_ocr.thirdparty.ctcwordbeamsearch.WordBeamSearch import wordBeamSearch, LanguageModel
label_desc: Use image node_id 2 for calling the WordBeamSearchCTCDecoder obj's underlying member method code with example usage: obj.decode(probabilities) and returns: self