





"""simple docstring"""




def 						UpperCAmelCase__		(     _UpperCAmelCase ,					_UpperCAmelCase = False					):






  """simple docstring"""





  if not isinstance(_UpperCAmelCase ,					_UpperCAmelCase					):
    A_  :       List[Any]										=  f"""Expected string as input, found {type(_UpperCAmelCase					)}"""
    raise ValueError(_UpperCAmelCase					)
  if not isinstance(_UpperCAmelCase ,					_UpperCAmelCase					):
    A_  :       Tuple										=  f"""Expected boolean as use_pascal parameter, found {type(_UpperCAmelCase					)}"""
    raise ValueError(_UpperCAmelCase					)

  A_  :       Tuple										=  input_str.split('_'					)

  A_  :       Optional[Any]										=  0 if use_pascal else 1

  A_  :       int										=  words[start_index:]

  A_  :       Optional[Any]										=  [word[0].upper() + word[1:] for word in words_to_capitalize]

  A_  :       Union[str, Any]										=  '' if use_pascal else words[0]

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


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

   testmod()






"""simple docstring"""




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available


lowerCamelCase_     :						int						=					{}


try:
   if not is_sentencepiece_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   lowerCamelCase_     :						Tuple						=					['MLukeTokenizer']

if TYPE_CHECKING:
   try:
      if not is_sentencepiece_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .tokenization_mluke import MLukeTokenizer


else:
   import sys

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