code: def test_type_index(df_checks_output):
      """Raise TypeError if wrong type is provided for the `index`."""
      with pytest.raises(TypeError):
          df_checks_output.pivot_wider(
              index={"geoid"}, names_from="variable"
          )
  
      with pytest.raises(TypeError):
          df_checks_output.pivot_wider(
              index=("geoid", "name"), names_from="variable"
          )
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 2 for calling a global function with example usage: test_type_index(df_checks_output) without return types