





'''simple docstring'''

import inspect
import unittest







class __a (   unittest.TestCase			):

   '''simple docstring'''





   def      UpperCAmelCase__     (					self				:			List[str]    ):

      '''simple docstring'''

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





   def      UpperCAmelCase__     (					self				:			int    ):

      '''simple docstring'''

      import diffusers
      from diffusers.dependency_versions_table import deps

      __SCREAMING_SNAKE_CASE      							=       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      							=       """k-diffusion"""
               elif backend == "invisible_watermark":
                  __SCREAMING_SNAKE_CASE      							=       """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


a        =						{"configuration_sew": ["SEW_PRETRAINED_CONFIG_ARCHIVE_MAP", "SEWConfig"]}

try:
    if not is_torch_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    a        =						[
        "SEW_PRETRAINED_MODEL_ARCHIVE_LIST",
        "SEWForCTC",
        "SEWForSequenceClassification",
        "SEWModel",
        "SEWPreTrainedModel",
    ]

if TYPE_CHECKING:
    from .configuration_sew import SEW_PRETRAINED_CONFIG_ARCHIVE_MAP, SEWConfig

    try:
        if not is_torch_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .modeling_sew import (
            SEW_PRETRAINED_MODEL_ARCHIVE_LIST,
            SEWForCTC,
            SEWForSequenceClassification,
            SEWModel,
            SEWPreTrainedModel,
        )


else:
    import sys

    a        =						_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)





