code: def test_charwap_augmenter():
      from textattack.augmentation import CharSwapAugmenter
  
      augmenter = CharSwapAugmenter(
          pct_words_to_swap=0.01, transformations_per_example=64
      )
      s = "To be or not to be"
      augmented_text_list = augmenter.augment(s)
      augmented_s = "T be or not to be"
      assert augmented_s in augmented_text_list
  
file_path: TextAttack/tests/test_augment_api.py
label_desc: Use image node_id 4 for calling a global function with example usage: test_charwap_augmenter() without return types