






"""simple docstring"""




from unittest.mock import patch

import datasets
from datasets import Dataset





def 						__UpperCAmelCase      (					):
							snake_case_           =							Dataset.from_dict({'col_1': [3, 2, 0, 1]})

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

														mock_tqdm.reset_mock()

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













def 						__UpperCAmelCase      (					a_):
							return 1 if input_a == 0 else 0





def 						__UpperCAmelCase      (					):
							assert not_gate(0) == 1
							assert not_gate(1) == 0


if __name__ == "__main__":
	print(not_gate(0))
	print(not_gate(1))





