code: def test_axis_values(df_checks):
      """Raise ValueError if wrong value is provided for axis."""
      msg = "axis should be either index or columns."
      with pytest.raises(ValueError, match=msg):
          df_checks.explode_index(axis="INDEX")
  
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 4 for calling a global function with example usage: test_axis_values(df_checks) without return types