code: def polyval(coeffs: np.ndarray, x: np.ndarray) -> np.ndarray:
      with ivy.PreciseMode(True):
          promoted_type = ivy.promote_types(
              ivy.dtype(coeffs[0]), ivy.dtype(x[0])
          )
      result = np.polyval(coeffs, x)
      result = np.asarray(result, np.dtype(promoted_type))
      return result
  
file_path: ivy/ivy/functional/backends/numpy/experimental/creation.py
imports: from typing import Optional, Tuple, Sequence, Union
  import numpy
  import ivy
label_desc: Use image node_id 12 for calling a global function with example usage: polyval(coeffs, x) and returns: result