



def 	UpperCAmelCase   (						_lowerCamelCase ,    _lowerCamelCase = False    ):

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

			A							:					List[Any]              =						input_str.split("_"    )

			A							:					int              =						0 if use_pascal else 1

			A							:					Any              =						words[start_index:]

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

			A							:					Optional[int]              =						"" if use_pascal else words[0]

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


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

							testmod()




from typing import TYPE_CHECKING

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


__SCREAMING_SNAKE_CASE           =  {
    """configuration_altclip""": [
        """ALTCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """AltCLIPConfig""",
        """AltCLIPTextConfig""",
        """AltCLIPVisionConfig""",
    ],
    """processing_altclip""": ["""AltCLIPProcessor"""],
}

try:
							if not is_torch_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							__SCREAMING_SNAKE_CASE           =  [
							    """ALTCLIP_PRETRAINED_MODEL_ARCHIVE_LIST""",
							    """AltCLIPPreTrainedModel""",
							    """AltCLIPModel""",
							    """AltCLIPTextModel""",
							    """AltCLIPVisionModel""",
							]


if TYPE_CHECKING:
							from .configuration_altclip import (
							    ALTCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
							    AltCLIPConfig,
							    AltCLIPTextConfig,
							    AltCLIPVisionConfig,
							)
							from .processing_altclip import AltCLIPProcessor

							try:
														if not is_torch_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_altclip import (
														    ALTCLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
														    AltCLIPModel,
														    AltCLIPPreTrainedModel,
														    AltCLIPTextModel,
														    AltCLIPVisionModel,
														)


else:
							import sys

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