






def       snake_case_		(     lowerCAmelCase_       :						int      ):






       if not isinstance(_UpperCamelCase       ,       _UpperCamelCase      ):
              raise ValueError("""Input must be an integer"""      )
       if input_num <= 0:
              raise ValueError("""Input must be positive"""      )
       return sum(
           divisor for divisor in range(1       ,       input_num // 2 + 1      ) if input_num % divisor == 0      )


if __name__ == "__main__":
 import doctest

 doctest.testmod()







from .imports import is_tqdm_available


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

from ..state import PartialState
def       snake_case_		(     lowerCAmelCase_       :						bool = True       ,       *lowerCAmelCase_       :						int       ,       **lowerCAmelCase_       :						List[str]      ):
							if not is_tqdm_available():
														raise ImportError("""Accelerate's `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`."""      )
							__lowercase      :							List[str]				=     False
							if main_process_only:
														__lowercase      :							Optional[int]				=     PartialState().local_process_index == 0
							return _tqdm(*lowerCAmelCase_       ,       **lowerCAmelCase_       ,       disable=lowerCAmelCase_      )