code: def _eval_poly(y, coef):
      coef = list(coef)
      result = coef.pop()
      while coef:
          result = coef.pop() + y * result
      return result
  
file_path: pyro/tests/distributions/test_von_mises.py
imports: import math
  import os
  import pytest
  import torch
  from torch import optim
  from pyro.distributions import VonMises, VonMises3D
  from pyro.distributions.testing.gof import auto_goodness_of_fit
  from tests.common import TEST_FAILURE_RATE, skipif_param, xfail_if_not_implemented
label_desc: Use image node_id 1 for calling a global function with example usage: _eval_poly(y, coef) and returns: result