class_docstr: Class for index test cases. Tests for all cases
  in test_cases whether the input's index is correctly
  preserved by the function. Some function's tests
  are implemented manually as they take different inputs.
class_docstr_tok: ["Class","for","index","test","cases",".","Tests","for","all","cases","in","test_cases","whether","the","input","'s","index","is","correctly","preserved","by","the","function",".","Some","function","'s","tests","are","implemented","manually","as","they","take","different","inputs","."]
code: def test_correct_index(self, name, test_function, valid_input):
      s = valid_input[0]
      result_s = test_function(*valid_input)
      t_same_index = pd.Series(s.values, s.index)
      assert result_s.index.equals(t_same_index.index)
  
file_path: texthero/tests/test_indexes.py
imports: import pandas
  from texthero import nlp, visualization, preprocessing, representation
  import pytest
  from .None import PandasTestCase
  import unittest
  import string
  from parameterized import parameterized
  from .conftest import broken_case
label_desc: Use image node_id 1 for calling the TestAbstractIndex obj's underlying member method code with example usage: obj.test_correct_index(name, test_function, valid_input) without return types