class_docstr: Reverses words in a string (or the whole string), using bidirectional
  override marks so the rendered string is visually identical to the original.
  Preserves whitespace, including newlines.
code: def __init__(self, granularity: str, split_word: bool = False):
      assert granularity in [
          "word",
          "all",
      ], "Must set 'granularity' to either 'word' or 'all'."
  
      self.granularity = granularity
      self.split_word = split_word
  
imports: from typing import List, Union
  from augly.text.augmenters.utils import rejoin_words_and_whitespace, split_words_on_whitespace
label_desc: Use image node_id 1 to create a new BidirectionalAugmenter object  with example: obj = BidirectionalAugmenter(granularity, split_word)