code: def per(matexpr):
      """Matrix Permanent
  
      Examples
      ========
  
      >>> from sympy import MatrixSymbol, Matrix, per, ones
      >>> A = MatrixSymbol('A', 3, 3)
      >>> per(A)
      Permanent(A)
      >>> per(ones(5, 5))
      120
      >>> M = Matrix([1, 2, 5])
      >>> per(M)
      8
      """
  
      return Permanent(matexpr).doit()
  
imports: from sympy.core.basic import Basic
  from sympy.core.expr import Expr
  from sympy.core.singleton import S
  from sympy.core.sympify import sympify
  from sympy.matrices.exceptions import NonSquareMatrixError
  from sympy.matrices.matrixbase import MatrixBase
  from sympy.assumptions.ask import ask, Q
  from sympy.assumptions.refine import handlers_dict
label_desc: Use image node_id 2 for calling a global function with example usage: per(matexpr) and returns: Permanent