code: def test_window_around_index(self, attacked_text):
      assert attacked_text.text_window_around_index(5, 1) == "into"
      assert (
          attacked_text.text_window_around_index(5, 2) == "stairs into"
      )
      assert (
          attacked_text.text_window_around_index(5, 3)
          == "stairs into a"
      )
      assert (
          attacked_text.text_window_around_index(5, 4)
          == "up stairs into a"
      )
      assert (
          attacked_text.text_window_around_index(5, 5)
          == "up stairs into a room"
      )
      assert (
          attacked_text.text_window_around_index(5, float("inf"))
          == "A person walks up stairs into a room and sees beer poured from a keg and people talking"
      )
  
imports: import collections
  import pytest
label_desc: Use image node_id 2 for calling the TestAttackedText obj's underlying member method code with example usage: obj.test_window_around_index(attacked_text) without return types