code: def test_max_word_index(self, sentence_attacked_text):
      short_constraint = textattack.constraints.pre_transformation.MaxWordIndexModification(
          8
      )
      assert short_constraint._get_modifiable_indices(
          sentence_attacked_text
      ) == set(range(8))
  
      long_constraint = textattack.constraints.pre_transformation.MaxWordIndexModification(
          8000
      )
      assert long_constraint._get_modifiable_indices(
          sentence_attacked_text
      ) == set(range(len(sentence_attacked_text.words)))
  
file_path: TextAttack/tests/test_constraints/test_pretransformation_constraints.py
imports: import collections
  import pytest
  import textattack
label_desc: Use image node_id 4 for calling the TestPretransformationConstraints obj's underlying member method code with example usage: obj.test_max_word_index(sentence_attacked_text) without return types