code: def polevl(x, coefs, n):
      """
      Evaluate polynomial of degree n.
  
      :param x: polynomial variable
      :type x: float
      :param coefs: polynomial coefficients
      :type coefs: list
      :param n: degree
      :type n: int
      :return: result as float
      """
      ans = 0
      power = len(coefs) - 1
      for coef in coefs:
          ans += coef * x**power
          power -= 1
      return ans
  
imports: from __future__ import division
  import sys
  import math
  import numpy
  import re
  from .pycm_param import *
  from .pycm_error import pycmMatrixError
  from warnings import warn
  from functools import wraps
label_desc: Use image node_id 25 for calling a global function with example usage: polevl(x, coefs, n) and returns: ans