





from collections.abc import Sequence





def     _UpperCamelCase     (a__   :Sequence[float]   ,			a__   :float       ):






							"""simple docstring"""





							return sum(c * (x**i) for i, c in enumerate(a__       )       )





def     _UpperCamelCase     (a__   :Sequence[float]   ,			a__   :float       ):






							"""simple docstring"""





							UpperCamelCase__				     =			0.0
							for coeff in reversed(a__       ):
														UpperCamelCase__				     =			result * x + coeff
							return result


if __name__ == "__main__":
					UpperCamelCase__											= (0.0, 0.0, 5.0, 9.3, 7.0)
					UpperCamelCase__											= 10.0
					print(evaluate_poly(poly, x))
					print(horner(poly, x))











import inspect
import unittest

class        __SCREAMING_SNAKE_CASE					(     unittest.TestCase       ):






							def 				_lowerCamelCase		(						self  ):
														try:
																					import diffusers  # noqa: F401
														except ImportError:
																					assert False







							def 				_lowerCamelCase		(						self  ):
														import diffusers
														from diffusers.dependency_versions_table import deps

														UpperCamelCase__				     =			inspect.getmembers(__lowerCAmelCase  , inspect.isclass  )

														for cls_name, cls_module in all_classes:
																					if "dummy_" in cls_module.__module__:
																												for backend in cls_module._backends:
																																			if backend == "k_diffusion":
																																										UpperCamelCase__				     =			"""k-diffusion"""
																																			elif backend == "invisible_watermark":
																																										UpperCamelCase__				     =			"""invisible-watermark"""
																																			assert backend in deps, f"""{backend} is not in the deps table!"""




