class_docstr: Convert between text-label and text-index 
class_docstr_tok: ["Convert","between","text-label","and","text-index"]
code: def __call__(self, preds, label=None, *args, **kwargs):
      preds_idx = preds.argmax(axis=2)
      preds_prob = preds.max(axis=2)
      text = self.decode(
          preds_idx, preds_prob, is_remove_duplicate=True
      )
      if label is None:
          return text
      label = self.decode(label)
      return text, label
  
imports: import cv2
  import copy
  import numpy
  import math
  import re
  import sys
  import argparse
  import string
  from copy import deepcopy
  from argparse import ArgumentParser, RawDescriptionHelpFormatter
  import yaml
label_desc: Use image node_id 2 for calling the CTCLabelDecode obj's underlying member method code with example usage: obj.__call__(preds, label) and returns: text,  label, text