code: def digit2text(rec):
      res = []
      for d in rec:
          assert d <= EOS
          if d == EOS:
              break
          if d == UNK:
              print("Warning: Has a UNK character")
              res.append(
                  "口"
              )  # Or any special character not in the target dict
          res.append(dict95[d])
      return "".join(res)
  
file_path: mmocr/tools/dataset_converters/common/curvedsyntext_converter.py
imports: import argparse
  import os.path
  from functools import partial
  import mmengine
  import numpy
  from mmocr.utils import bezier2polygon, sort_points
label_desc: Use image node_id 1 for calling a global function with example usage: digit2text(rec) and returns: str