




from typing import TYPE_CHECKING

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


__A    :				Optional[int]    						=	{
    'configuration_retribert': ['RETRIBERT_PRETRAINED_CONFIG_ARCHIVE_MAP', 'RetriBertConfig'],
    'tokenization_retribert': ['RetriBertTokenizer'],
}

try:
		if not is_tokenizers_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		__A    :				Optional[Any]    						=	['RetriBertTokenizerFast']

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		__A    :				Dict    						=	[
		    'RETRIBERT_PRETRAINED_MODEL_ARCHIVE_LIST',
		    'RetriBertModel',
		    'RetriBertPreTrainedModel',
		]


if TYPE_CHECKING:
		from .configuration_retribert import RETRIBERT_PRETRAINED_CONFIG_ARCHIVE_MAP, RetriBertConfig
		from .tokenization_retribert import RetriBertTokenizer

		try:
				if not is_tokenizers_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .tokenization_retribert_fast import RetriBertTokenizerFast

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_retribert import (
				    RETRIBERT_PRETRAINED_MODEL_ARCHIVE_LIST,
				    RetriBertModel,
				    RetriBertPreTrainedModel,
				)

else:
		import sys

		__A    :				Optional[Any]    						=	_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)













from __future__ import annotations

from enum import Enum, unique
from typing import TypeVar

# Create a generic variable that can be 'Enum', or any subclass.
a_    :				List[str]					=			TypeVar('T', bound='Enum')



@unique
class  SCREAMING_SNAKE_CASE_  ( SCREAMING_SNAKE_CASE__			):


  """simple docstring"""





  _a								=							80
  _a								=							70
  _a								=							60
  _a								=							50
  _a								=							40
  _a								=							30
  _a								=							20
  _a								=							10



@unique
class  SCREAMING_SNAKE_CASE_  ( SCREAMING_SNAKE_CASE__			):


  """simple docstring"""





  _a								=							24
  _a								=							21
  _a								=							18
  _a								=							15
  _a								=							12
  _a								=							9
  _a								=							6
  _a								=							3
  _a								=							2
  _a								=							1
  _a								=							-1
  _a								=							-2
  _a								=							-3
  _a								=							-6
  _a								=							-9
  _a								=							-12
  _a								=							-15
  _a								=							-18
  _a								=							-21
  _a								=							-24





  @classmethod
  def 			__A      (  cls						)		->   dict:





       '''simple docstring'''







       return {unit.name: unit.value for unit in cls if unit.value > 0}







  @classmethod
  def 			__A      (  cls						)		->   dict:





       '''simple docstring'''







       return {unit.name: unit.value for unit in cls if unit.value < 0}




def   _SCREAMING_SNAKE_CASE      (	snake_case_		:						float						):
     __magic_name__				=       SIUnit.get_positive() if value > 0 else SIUnit.get_negative()
     for name_prefix, value_prefix in prefixes.items():
          __magic_name__				=       value / (10**value_prefix)
          if numerical_part > 1:
               return f'{numerical_part!s} {name_prefix}'
     return str(snake_case_						)




def   _SCREAMING_SNAKE_CASE      (	snake_case_		:						float						):
     for prefix in BinaryUnit:
          __magic_name__				=       value / (2**prefix.value)
          if numerical_part > 1:
               return f'{numerical_part!s} {prefix.name}'
     return str(snake_case_						)


if __name__ == "__main__":
    import doctest

    doctest.testmod()