
"""simple docstring"""






import inspect
import unittest




class 				lowercase__(				unittest.TestCase   ):
	'''simple docstring'''

	def   __lowerCAmelCase (						self    :Optional[Any]					)							->			str:







			'''simple docstring'''




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







	def   __lowerCAmelCase (						self    :int					)							->			Dict:







			'''simple docstring'''




			import diffusers
			from diffusers.dependency_versions_table import deps

			SCREAMING_SNAKE_CASE       :     Tuple				= inspect.getmembers(A__		, 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":
											SCREAMING_SNAKE_CASE       :     Dict				= """k-diffusion"""
									elif backend == "invisible_watermark":
											SCREAMING_SNAKE_CASE       :     List[Any]				= """invisible-watermark"""
									assert backend in deps, f"{backend} is not in the deps table!"







"""simple docstring"""






from typing import TYPE_CHECKING

from ....utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowerCamelCase__ :       Tuple						     =			{
    "configuration_mctct": ["MCTCT_PRETRAINED_CONFIG_ARCHIVE_MAP", "MCTCTConfig"],
    "feature_extraction_mctct": ["MCTCTFeatureExtractor"],
    "processing_mctct": ["MCTCTProcessor"],
}


try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					lowerCamelCase__ :       Union[str, Any]						     =			[
					    "MCTCT_PRETRAINED_MODEL_ARCHIVE_LIST",
					    "MCTCTForCTC",
					    "MCTCTModel",
					    "MCTCTPreTrainedModel",
					]


if TYPE_CHECKING:
					from .configuration_mctct import MCTCT_PRETRAINED_CONFIG_ARCHIVE_MAP, MCTCTConfig
					from .feature_extraction_mctct import MCTCTFeatureExtractor
					from .processing_mctct import MCTCTProcessor

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_mctct import MCTCT_PRETRAINED_MODEL_ARCHIVE_LIST, MCTCTForCTC, MCTCTModel, MCTCTPreTrainedModel

else:
					import sys

					lowerCamelCase__ :       Tuple						     =			_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)





