code: def test_argmax_axis_invalid(self, index):
      # GH#23081
      msg = r"`axis` must be fewer than the number of dimensions \(1\)"
      with pytest.raises(ValueError, match=msg):
          index.argmax(axis=1)
      with pytest.raises(ValueError, match=msg):
          index.argmin(axis=2)
      with pytest.raises(ValueError, match=msg):
          index.min(axis=-2)
      with pytest.raises(ValueError, match=msg):
          index.max(axis=-3)
  
imports: import re
  import numpy
  import pytest
  from pandas.errors import InvalidIndexError
  import pandas._testing
label_desc: Use image node_id 1 for calling the TestReductions obj's underlying member method code with example usage: obj.test_argmax_axis_invalid(index) without return types