





from typing import TYPE_CHECKING

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


__A             =       {
    "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:
      __A             =       [
          "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

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








import re





def   lowerCAmelCase_				( __a	)  ->	list:







  """simple docstring"""





  return [char.split() for char in re.split(R"[^ a-z A-Z 0-9 \s]"			,					str_	)]





def   lowerCAmelCase_				( __a	)  ->	str:







  """simple docstring"""





  lowerCamelCase__:   Tuple    						=split_input(str_	)
  return "".join(
      ["".join([char.capitalize() for char in sub_str]	) for sub_str in string_split]	)





def   lowerCAmelCase_				( __a			,					__a			,					__a	)  ->	str:







  """simple docstring"""





  try:
    lowerCamelCase__:   Optional[Any]    						=split_input(__a	)
    if upper:
      lowerCamelCase__:   Tuple    						="".join(
          [
              separator.join([char.upper() for char in sub_str]	)
              for sub_str in string_split
          ]	)
    else:
      lowerCamelCase__:   Dict    						="".join(
          [
              separator.join([char.lower() for char in sub_str]	)
              for sub_str in string_split
          ]	)
    return res_str
  except IndexError:
    return "not valid string"





def   lowerCAmelCase_				( __a	)  ->	str:







  """simple docstring"""





  return to_simple_case(__a	)





def   lowerCAmelCase_				( __a	)  ->	str:







  """simple docstring"""





  try:
    lowerCamelCase__:   Any    						=to_simple_case(__a	)
    return res_str[0].lower() + res_str[1:]
  except IndexError:
    return "not valid string"





def   lowerCAmelCase_				( __a			,					__a	)  ->	str:







  """simple docstring"""





  return to_complex_case(__a			,					__a			,					"_"	)





def   lowerCAmelCase_				( __a			,					__a	)  ->	str:







  """simple docstring"""





  return to_complex_case(__a			,					__a			,					"-"	)


if __name__ == "__main__":
     __import__("doctest").testmod()

