





from ..utils import DummyObject, requires_backends

class        __SCREAMING_SNAKE_CASE					(     metaclass=_a       ):
							snake_case     :      int						     =       ["""torch""", """scipy"""]






							def __init__(						self  , *__lowerCAmelCase  , **__lowerCAmelCase  ):
														requires_backends(self  , ["""torch""", """scipy"""]  )






							@classmethod
							def 				_lowerCamelCase		(						cls  , *__lowerCAmelCase  , **__lowerCAmelCase  ):
														requires_backends(cls  , ["""torch""", """scipy"""]  )







							@classmethod
							def 				_lowerCamelCase		(						cls  , *__lowerCAmelCase  , **__lowerCAmelCase  ):
														requires_backends(cls  , ["""torch""", """scipy"""]  )











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!"""




