code: def test_type_axis(df_checks):
      """Raise TypeError if wrong type is provided for axis."""
      with pytest.raises(TypeError, match="axis should be one of.+"):
          df_checks.explode_index(axis=1)
  
file_path: pyjanitor/tests/functions/test_explode_index.py
imports: import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 3 for calling a global function with example usage: test_type_axis(df_checks) without return types