code: def test_replace_bidirectional(self) -> None:
      augmented_bidirectional = txtaugs.replace_bidirectional(
          self.texts
      )
      # Renders as: "‮.llih yssarg ,neerg eht revo pmuj t'ndluoc 'xof' nworb kciuq ehT‬"
      self.assertEqual(
          augmented_bidirectional,
          [
              "\u202e.llih yssarg ,neerg eht revo pmuj t'ndluoc 'xof' nworb kciuq ehT\u202c"
          ],
      )
      augmented_bidirectional_word = txtaugs.replace_bidirectional(
          self.texts, granularity="word"
      )
      # Renders as: "‭‮ehT‬ ‮kciuq‬ ‮nworb‬ ‮'xof'‬ ‮t'ndluoc‬ ‮pmuj‬ ‮revo‬ ‮eht‬ ‮,neerg‬ ‮yssarg‬ ‮.llih‬"
      self.assertEqual(
          augmented_bidirectional_word,
          [
              "\u202d\u202eehT\u202c \u202ekciuq\u202c \u202enworb\u202c \u202e'"
              "xof'\u202c \u202et'ndluoc\u202c \u202epmuj\u202c \u202erevo\u202c"
              " \u202eeht\u202c \u202e,neerg\u202c \u202eyssarg\u202c \u202e.lli"
              "h\u202c"
          ],
      )
      augmented_bidirectional_split = txtaugs.replace_bidirectional(
          self.texts, granularity="word", split_word=True
      )
      # Renders as: "‭T‮eh‬ qu‮kci‬ br‮nwo‬ 'f‮'xo‬ coul‮t'nd‬ ju‮pm‬ ov‮re‬ t‮eh‬ gre‮,ne‬ gra‮yss‬ hi‮.ll‬"
      self.assertEqual(
          augmented_bidirectional_split,
          [
              "\u202dT\u202eeh\u202c qu\u202ekci\u202c br\u202enwo\u202c 'f\u202e"
              "'xo\u202c coul\u202et'nd\u202c ju\u202epm\u202c ov\u202ere\u202c"
              " t\u202eeh\u202c gre\u202e,ne\u202c gra\u202eyss\u202c hi\u202e"
              ".ll\u202c"
          ],
      )
  
imports: import random
  import unittest
  from augly import text
  from augly.utils import FUN_FONTS_GREEK_PATH
label_desc: Use image node_id 12 for calling the FunctionalTextUnitTest obj's underlying member method code with example usage: obj.test_replace_bidirectional() without return types