code: def polyval(
      coeffs: paddle.Tensor,
      x: paddle.Tensor,
  ) -> paddle.Tensor:
      with ivy.PreciseMode(True):
          promoted_type = ivy.promote_types(
              ivy.dtype(coeffs[0]), ivy.dtype(x[0])
          )
      coeffs, x = ivy.promote_types_of_inputs(coeffs, x)
      y = paddle.zeros_like(x)
      for coeff in coeffs:
          y = y * x + coeff
      y = paddle.to_tensor(y)
      y = y.astype(promoted_type)
      return y
  
file_path: ivy/ivy/functional/backends/paddle/experimental/creation.py
imports: from typing import Optional, Tuple, Union
  import math
  import paddle
  import ivy.functional.backends.paddle
  from paddle.device import core
  from ivy.func_wrapper import with_supported_dtypes, with_unsupported_device_and_dtypes
  import ivy
  from ..None import backend_version
label_desc: Use image node_id 12 for calling a global function with example usage: polyval(coeffs, x) and returns: y