code: def test_power_operator(A):
      assert isinstance(
          (A**2), scipy.sparse.sparray
      ), "Expected array, got matrix"
  
      # https://github.com/scipy/scipy/issues/15948
      npt.assert_equal((A**2).todense(), (A.todense()) ** 2)
  
      # power of zero is all ones (dense) so helpful msg exception
      with pytest.raises(NotImplementedError, match="zero power"):
          A**0
  
imports: import pytest
  import numpy
  import numpy.testing
  import scipy.sparse
  import scipy.sparse.linalg
  from scipy._lib._util import VisibleDeprecationWarning
label_desc: Use image node_id 11 for calling a global function with example usage: test_power_operator(A) without return types