






"""simple docstring"""





def      __lowercase       (     a			:					Optional[int]			)       ->       int:


      if not isinstance(lowerCAmelCase_							,		lowerCAmelCase_			) or number < 0:
            raise ValueError('''Input must be a non-negative integer'''			)

      __snake_case   :     List[str]	      =number & ~(number - 1)
      __snake_case   :     str	      =0
      while intermediate:
            intermediate >>= 1
            index += 1
      return index - 1


if __name__ == "__main__":
    import doctest

    doctest.testmod(verbose=True)







'''simple docstring'''






from unittest.mock import patch

import datasets
from datasets import Dataset




def        snake_case_   (	)->						str:





       '''simple docstring'''


       _UpperCAmelCase    :		Tuple     	=					Dataset.from_dict({"""col_1""": [3, 2, 0, 1]}						)

       with patch("""tqdm.auto.tqdm"""						) as mock_tqdm:
              datasets.disable_progress_bar()
              dset.map(lambda lowerCAmelCase_						: {"col_2": x["col_1"] + 1}						)
              mock_tqdm.assert_not_called()

              mock_tqdm.reset_mock()

              datasets.enable_progress_bar()
              dset.map(lambda lowerCAmelCase_						: {"col_2": x["col_1"] + 1}						)
              mock_tqdm.assert_called()



