code: def polyval(
      coeffs=ivy.Array,
      x=Union[ivy.Array, ivy.NativeArray, int, float],
      /,
      *,
      dtype: Optional[Union[ivy.Dtype, ivy.NativeDtype]] = None,
      device: Optional[Union[ivy.Device, ivy.NativeDevice]] = None,
  ) -> ivy.Array:
      """ivy.Array instance method of polyval. This method simply wraps the
      function, and so the docstring for ivy.polyval also applies to this method
      with minimal changes.
  
      Evaluate and return a polynomial at specific given values.
  
      Parameters
      ----------
      coeffs
          Input array containing polynomial coefficients (including zero)
          from highest degree to constant term.
      x
          The value of the indeterminate variable at which to evaluate the polynomial.
  
      Returns
      -------
      ret
          Simplified result of substituting x in the coefficients - final value of
          polynomial.
  
      Examples
      --------
      >>> x = ivy.array([[0, 0, 0])
      >>> x.polyval([3, 0, 1], 5)
      ivy.array(76)
      """
      return ivy.polyval(
          coeffs,
          x,
      )
  
file_path: ivy/ivy/data_classes/array/experimental/creation.py
imports: import abc
  from typing import Optional, Union
  import ivy
label_desc: Use image node_id 1 for calling a global function with example usage: polyval() and returns: ivy