code: def test_word_insertion(self, attacked_text):
      new_text = attacked_text.insert_text_before_word_index(
          3, "a long way"
      )
      assert (
          new_text.text
          == "A person walks a long way up stairs into a room and sees beer poured from a keg and people talking."
      )
      new_text = new_text.insert_text_after_word_index(
          19, "on the couch"
      )
      assert (
          new_text.text
          == "A person walks a long way up stairs into a room and sees beer poured from a keg and people on the couch talking."
      )
  
imports: import collections
  import pytest
label_desc: Use image node_id 12 for calling the TestAttackedText obj's underlying member method code with example usage: obj.test_word_insertion(attacked_text) without return types