




'''simple docstring'''




from .imports import is_tqdm_available


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

from ..state import PartialState

def       _UpperCamelCase					( SCREAMING_SNAKE_CASE__	:					bool = True				,  *SCREAMING_SNAKE_CASE__	:					Any				,  **SCREAMING_SNAKE_CASE__	:					Union[str, Any]				):
 '''simple docstring'''





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







'''simple docstring'''

from string import ascii_lowercase, ascii_uppercase





def lowerCamelCase						(     __lowerCamelCase :    str    )						->str:
    if not sentence:
        return ""
    _SCREAMING_SNAKE_CASE									=			dict(zip(__lowerCamelCase					,       __lowerCamelCase    )    )
    return lower_to_upper.get(sentence[0]					,       sentence[0]    ) + sentence[1:]


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

      testmod()



