"""simple docstring"""




from typing import TYPE_CHECKING

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


_a				:		int	   =       {
    'configuration_ctrl': ['CTRL_PRETRAINED_CONFIG_ARCHIVE_MAP', 'CTRLConfig'],
    'tokenization_ctrl': ['CTRLTokenizer'],
}

try:
     if not is_torch_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     _a				:		Optional[Any]	   =       [
         'CTRL_PRETRAINED_MODEL_ARCHIVE_LIST',
         'CTRLForSequenceClassification',
         'CTRLLMHeadModel',
         'CTRLModel',
         'CTRLPreTrainedModel',
     ]

try:
     if not is_tf_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     _a				:		int	   =       [
         'TF_CTRL_PRETRAINED_MODEL_ARCHIVE_LIST',
         'TFCTRLForSequenceClassification',
         'TFCTRLLMHeadModel',
         'TFCTRLModel',
         'TFCTRLPreTrainedModel',
     ]


if TYPE_CHECKING:
     from .configuration_ctrl import CTRL_PRETRAINED_CONFIG_ARCHIVE_MAP, CTRLConfig
     from .tokenization_ctrl import CTRLTokenizer

     try:
          if not is_torch_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_ctrl import (
              CTRL_PRETRAINED_MODEL_ARCHIVE_LIST,
              CTRLForSequenceClassification,
              CTRLLMHeadModel,
              CTRLModel,
              CTRLPreTrainedModel,
          )

     try:
          if not is_tf_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_tf_ctrl import (
              TF_CTRL_PRETRAINED_MODEL_ARCHIVE_LIST,
              TFCTRLForSequenceClassification,
              TFCTRLLMHeadModel,
              TFCTRLModel,
              TFCTRLPreTrainedModel,
          )

else:
     import sys

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





"""simple docstring"""




def 							SCREAMING_SNAKE_CASE					(      _lowerCamelCase						:	str      ,_lowerCamelCase						:	bool = False     )	->				str:

  if not isinstance(_lowerCamelCase      ,_lowerCamelCase     ):
    _lowerCAmelCase						:	Union[str, Any]        =					f"Expected string as input, found {type(_lowerCamelCase     )}"
    raise ValueError(_lowerCamelCase     )
  if not isinstance(_lowerCamelCase      ,_lowerCamelCase     ):
    _lowerCAmelCase						:	Union[str, Any]        =					f"Expected boolean as use_pascal parameter, found {type(_lowerCamelCase     )}"
    raise ValueError(_lowerCamelCase     )

  _lowerCAmelCase						:	str        =					input_str.split("""_"""     )

  _lowerCAmelCase						:	Optional[int]        =					0 if use_pascal else 1

  _lowerCAmelCase						:	List[Any]        =					words[start_index:]

  _lowerCAmelCase						:	Union[str, Any]        =					[word[0].upper() + word[1:] for word in words_to_capitalize]

  _lowerCAmelCase						:	List[Any]        =					"""""" if use_pascal else words[0]

  return "".join([initial_word, *capitalized_words]     )


if __name__ == "__main__":
     from doctest import testmod

     testmod()




