



'''simple docstring'''





import inspect
import unittest



class  snake_case__						(    unittest.TestCase				):
 def A_   (   self						:							int  )      ->   Any:







       '''simple docstring'''
       try:
             import diffusers  # noqa: F401
       except ImportError:
             assert False





 def A_   (   self						:							Optional[int]  )      ->   List[Any]:







       '''simple docstring'''
       import diffusers
       from diffusers.dependency_versions_table import deps

       __snake_case :   str													=    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":
                               __snake_case :   Tuple													=    'k-diffusion'
                         elif backend == "invisible_watermark":
                               __snake_case :   Tuple													=    '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__    :   List[Any]           =					{
    '''configuration_luke''': ['''LUKE_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''LukeConfig'''],
    '''tokenization_luke''': ['''LukeTokenizer'''],
}

try:
    if not is_torch_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    A__    :   Union[str, Any]           =					[
        '''LUKE_PRETRAINED_MODEL_ARCHIVE_LIST''',
        '''LukeForEntityClassification''',
        '''LukeForEntityPairClassification''',
        '''LukeForEntitySpanClassification''',
        '''LukeForMultipleChoice''',
        '''LukeForQuestionAnswering''',
        '''LukeForSequenceClassification''',
        '''LukeForTokenClassification''',
        '''LukeForMaskedLM''',
        '''LukeModel''',
        '''LukePreTrainedModel''',
    ]


if TYPE_CHECKING:
    from .configuration_luke import LUKE_PRETRAINED_CONFIG_ARCHIVE_MAP, LukeConfig
    from .tokenization_luke import LukeTokenizer

    try:
        if not is_torch_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .modeling_luke import (
            LUKE_PRETRAINED_MODEL_ARCHIVE_LIST,
            LukeForEntityClassification,
            LukeForEntityPairClassification,
            LukeForEntitySpanClassification,
            LukeForMaskedLM,
            LukeForMultipleChoice,
            LukeForQuestionAnswering,
            LukeForSequenceClassification,
            LukeForTokenClassification,
            LukeModel,
            LukePreTrainedModel,
        )

else:
    import sys

    A__    :   List[str]           =					_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)



