code: def _apply_single(self, txt, meta):
      # To support arabic text
      return bidi_algorithm.get_display(
          txt,
          base_dir=self.params.bidi_direction.value
          if self.params.bidi_direction != BidiDirection.AUTO
          else None,
      )
  
imports: from dataclasses import dataclass, field
  from typing import Type
  import bidi.algorithm
  from paiargparse import pai_dataclass, pai_meta
  from tfaip.data.pipeline.processor.dataprocessor import DataProcessorParams
  from tfaip.util.enum import StrEnum
  from calamari_ocr.ocr.dataset.textprocessors import TextProcessor
label_desc: Use image node_id 1 for calling the BidiTextProcessor obj's underlying member method code with example usage: obj._apply_single(txt, meta) and returns: bidi_algorithm