class_docstr: Transformation that inserts synonyms of words that are already in the
  sequence.
code: def _get_transformations(self, current_text, indices_to_modify):
      transformed_texts = []
      for idx in indices_to_modify:
          synonyms = []
          # try to find a word with synonyms, and deal with edge case where there aren't any
          for attempt in range(7):
              synonyms = self._get_synonyms(
                  random.choice(current_text.words)
              )
              if synonyms:
                  break
              elif attempt == 6:
                  return [current_text]
          random_synonym = random.choice(synonyms)
          transformed_texts.append(
              current_text.insert_text_before_word_index(
                  idx, random_synonym
              )
          )
      return transformed_texts
  
file_path: TextAttack/textattack/transformations/word_insertions/word_insertion_random_synonym.py
imports: import random
  from nltk.corpus import wordnet
  from .word_insertion import WordInsertion
label_desc: Use image node_id 2 for calling the WordInsertionRandomSynonym obj's underlying member method code with example usage: obj._get_transformations(current_text, indices_to_modify) and returns: transformed_texts, list