'''simple docstring'''

from unittest.mock import patch

import datasets
from datasets import Dataset


def        UpperCAmelCase__   (				)    ->		Any:



						"""simple docstring"""

						snake_case :       str				=    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()






'''simple docstring'''

from __future__ import annotations


def        UpperCAmelCase__   (				_lowerCAmelCase    :			list[int | float])    ->		int | float:



						"""simple docstring"""

						if len(_lowerCAmelCase) == 0:
												raise ValueError("find_max() arg is an empty sequence")
						snake_case :       Any				=    nums[0]
						for x in nums:
												if x > max_num:
																		snake_case :       int				=    x
						return max_num


if __name__ == "__main__":
						import doctest

						doctest.testmod(verbose=True)





