code: def get_array_indices(self):
          
  
          for token in self.tokens:
              if isinstance(token, SquareBrackets):
                  # Use [1:-1] index to discard the square brackets
                  yield token.tokens[1:-1]
docs: Returns an iterator of index token lists