



def 							A	(     _UpperCAmelCase				:   str							,   _UpperCAmelCase				:   bool = False    )				-> str:







			'''simple docstring'''



			if not isinstance(A__							,   A__    ):
						_UpperCAmelCase		       =   F"Expected string as input, found {type(A__    )}"
						raise ValueError(A__    )
			if not isinstance(A__							,   A__    ):
						_UpperCAmelCase		       =   F"Expected boolean as use_pascal parameter, found {type(A__    )}"
						raise ValueError(A__    )

			_UpperCAmelCase		       =   input_str.split('_'    )

			_UpperCAmelCase		       =   0 if use_pascal else 1

			_UpperCAmelCase		       =   words[start_index:]

			_UpperCAmelCase		       =   [word[0].upper() + word[1:] for word in words_to_capitalize]

			_UpperCAmelCase		       =   '' if use_pascal else words[0]

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


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

							testmod()



from .imports import is_tqdm_available


if is_tqdm_available():
  from tqdm.auto import tqdm as _tqdm

from ..state import PartialState
def      a      (			A__	:   bool = True      ,   *A__	:   int      ,   **A__	:   Union[str, Any]     )    ->      List[str]:





      """simple docstring"""



      if not is_tqdm_available():
            raise ImportError('Accelerate\'s `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`.'     )
      _lowercase	       =False
      if main_process_only:
            _lowercase	       =PartialState().local_process_index == 0
      return _tqdm(*A__      ,   **A__      ,   disable=A__     )


