code: def test_hadamard_power():
      m, n, p = symbols("m, n, p", integer=True)
      A = MatrixSymbol("A", m, n)
  
      assert hadamard_power(A, 1) == A
      assert isinstance(hadamard_power(A, 2), HadamardPower)
      assert hadamard_power(A, n).T == hadamard_power(A.T, n)
      assert hadamard_power(A, n)[0, 0] == A[0, 0] ** n
      assert hadamard_power(m, n) == m**n
      raises(ValueError, lambda: hadamard_power(A, A))
  
file_path: sympy/sympy/matrices/expressions/tests/test_hadamard.py
imports: from sympy.matrices.dense import Matrix, eye
  from sympy.matrices.exceptions import ShapeError
  from sympy.matrices.expressions.matadd import MatAdd
  from sympy.matrices.expressions.special import Identity, OneMatrix, ZeroMatrix
  from sympy.core import symbols
  from sympy.testing.pytest import raises, warns_deprecated_sympy
  from sympy.matrices import MatrixSymbol
  from sympy.matrices.expressions import HadamardProduct, hadamard_product, HadamardPower, hadamard_power
label_desc: Use image node_id 7 for calling a global function with example usage: test_hadamard_power() without return types