






'''simple docstring'''


from collections.abc import Sequence







def 	__magic_name__( _A						,      _A					):
						'''simple docstring'''





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







def 	__magic_name__( _A						,      _A					):
						'''simple docstring'''





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


if __name__ == "__main__":
				lowerCamelCase_				: Optional[Any]    	=							(0.0, 0.0, 5.0, 9.3, 7.0)
				lowerCamelCase_				: Tuple    	=							10.0
				print(evaluate_poly(poly, x))
				print(horner(poly, x))








'''simple docstring'''


import inspect
import unittest
class    _SCREAMING_SNAKE_CASE							(		unittest.TestCase	):


			'''simple docstring'''





			def 				A      (   self							:						Tuple			)							->    Any:

									'''simple docstring'''







									try:
															import diffusers  # noqa: F401
									except ImportError:
															assert False







			def 				A      (   self							:						Optional[int]			)							->    Union[str, Any]:

									'''simple docstring'''







									import diffusers
									from diffusers.dependency_versions_table import deps

									UpperCamelCase__         = inspect.getmembers(lowercase ,      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!"
