





import os
from distutils.util import strtobool





def      lowerCAmelCase_ (       __a	,    __a		)     ->		Tuple:







  """simple docstring"""





  for e in env_keys:
    lowerCamelCase__:      List[Any]			  =int(os.environ.get(__a	,    -1		)		)
    if val >= 0:
      return val
  return default





def      lowerCAmelCase_ (       __a	,    __a=False		)     ->		List[Any]:







  """simple docstring"""





  lowerCamelCase__:      str			  =os.environ.get(__a	,    str(__a		)		)
  return strtobool(__a		) == 1  # As its name indicates `strtobool` actually returns an int...






def      lowerCAmelCase_ (       __a	,    __a="no"		)     ->		List[str]:







  """simple docstring"""





  lowerCamelCase__:      List[Any]			  =os.environ.get(__a	,    str(__a		)		)
  return value








from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__A									=				{"configuration_ibert": ["IBERT_PRETRAINED_CONFIG_ARCHIVE_MAP", "IBertConfig", "IBertOnnxConfig"]}

try:
     if not is_torch_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     __A									=				[
         "IBERT_PRETRAINED_MODEL_ARCHIVE_LIST",
         "IBertForMaskedLM",
         "IBertForMultipleChoice",
         "IBertForQuestionAnswering",
         "IBertForSequenceClassification",
         "IBertForTokenClassification",
         "IBertModel",
         "IBertPreTrainedModel",
     ]

if TYPE_CHECKING:
     from .configuration_ibert import IBERT_PRETRAINED_CONFIG_ARCHIVE_MAP, IBertConfig, IBertOnnxConfig

     try:
          if not is_torch_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_ibert import (
              IBERT_PRETRAINED_MODEL_ARCHIVE_LIST,
              IBertForMaskedLM,
              IBertForMultipleChoice,
              IBertForQuestionAnswering,
              IBertForSequenceClassification,
              IBertForTokenClassification,
              IBertModel,
              IBertPreTrainedModel,
          )

else:
     import sys

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

