code: def _horner(x, coeffs):
      """Horner's method to evaluate polynomials."""
      res = coeffs[0]
      for c in coeffs[1:]:
          res = c + x * res
      return res
  
imports: import contextlib
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import custom_gradient
  from tensorflow_probability.python.internal import dtype_util
label_desc: Use image node_id 3 for calling a global function with example usage: _horner(x, coeffs) and returns: res