

"""simple docstring"""
from typing import TYPE_CHECKING

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


__magic_name__		       =				{
    '''configuration_flava''': [
        '''FLAVA_PRETRAINED_CONFIG_ARCHIVE_MAP''',
        '''FlavaConfig''',
        '''FlavaImageCodebookConfig''',
        '''FlavaImageConfig''',
        '''FlavaMultimodalConfig''',
        '''FlavaTextConfig''',
    ],
}

try:
			if not is_vision_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			__magic_name__		       =				['''FlavaFeatureExtractor''']
			__magic_name__		       =				['''FlavaImageProcessor''']
			__magic_name__		       =				['''FlavaProcessor''']

try:
			if not is_torch_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			__magic_name__		       =				[
			    '''FLAVA_PRETRAINED_MODEL_ARCHIVE_LIST''',
			    '''FlavaForPreTraining''',
			    '''FlavaImageCodebook''',
			    '''FlavaImageModel''',
			    '''FlavaModel''',
			    '''FlavaMultimodalModel''',
			    '''FlavaPreTrainedModel''',
			    '''FlavaTextModel''',
			]

if TYPE_CHECKING:
			from .configuration_flava import (
			    FLAVA_PRETRAINED_CONFIG_ARCHIVE_MAP,
			    FlavaConfig,
			    FlavaImageCodebookConfig,
			    FlavaImageConfig,
			    FlavaMultimodalConfig,
			    FlavaTextConfig,
			)

			try:
						if not is_vision_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .feature_extraction_flava import FlavaFeatureExtractor
						from .image_processing_flava import FlavaImageProcessor
						from .processing_flava import FlavaProcessor

			try:
						if not is_torch_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .modeling_flava import (
						    FLAVA_PRETRAINED_MODEL_ARCHIVE_LIST,
						    FlavaForPreTraining,
						    FlavaImageCodebook,
						    FlavaImageModel,
						    FlavaModel,
						    FlavaMultimodalModel,
						    FlavaPreTrainedModel,
						    FlavaTextModel,
						)

else:
			import sys

			__magic_name__		       =				_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)






"""simple docstring"""
from collections import namedtuple

__magic_name__		       =				namedtuple('''from_to''', '''from_ to''')

__magic_name__		       =				{
    '''atm''': from_to(1, 1),
    '''pascal''': from_to(0.0000098, 10_13_25),
    '''bar''': from_to(0.986923, 1.01325),
    '''kilopascal''': from_to(0.00986923, 101.325),
    '''megapascal''': from_to(9.86923, 0.101325),
    '''psi''': from_to(0.068046, 14.6959),
    '''inHg''': from_to(0.0334211, 29.9213),
    '''torr''': from_to(0.00131579, 7_60),
}




def     __lowerCamelCase  (		UpperCamelCase__				,     UpperCamelCase__				,     UpperCamelCase__      ):


	"""simple docstring"""






	if from_type not in PRESSURE_CONVERSION:
		raise ValueError(
		    f"Invalid 'from_type' value: {from_type!r}  Supported values are:\n"
		    + ", ".join(UpperCamelCase__      )      )
	if to_type not in PRESSURE_CONVERSION:
		raise ValueError(
		    f"Invalid 'to_type' value: {to_type!r}.  Supported values are:\n"
		    + ", ".join(UpperCamelCase__      )      )
	return (
	    value * PRESSURE_CONVERSION[from_type].from_ * PRESSURE_CONVERSION[to_type].to
	)


if __name__ == "__main__":
			import doctest

			doctest.testmod()




