class_docstr: Test class for scipy.stats.variation
code: def test_bad_axis(self):
      # Check that an invalid axis raises np.exceptions.AxisError.
      x = np.array([[1, 2, 3], [4, 5, 6]])
      with pytest.raises(AxisError):
          variation(x, axis=10)
  
imports: import numpy
  from numpy.testing import assert_equal, assert_allclose
  import pytest
  from scipy.stats import variation
  from scipy._lib._util import AxisError
label_desc: Use image node_id 12 for calling the TestVariation obj's underlying member method code with example usage: obj.test_bad_axis() without return types