
'''simple docstring'''





from unittest.mock import patch

import datasets
from datasets import Dataset





def 							snake_case				(		)->      Optional[int]:







      """simple docstring"""
      __A													=      Dataset.from_dict({'col_1': [3, 2, 0, 1]}						)

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

            mock_tqdm.reset_mock()

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








'''simple docstring'''





def 							snake_case				(		UpperCAmelCase						)->      int:







      """simple docstring"""
      if not isinstance(UpperCAmelCase   ,	UpperCAmelCase						):
            raise ValueError('double_factorial() only accepts integral values'						)
      if num < 0:
            raise ValueError('double_factorial() not defined for negative values'						)
      __A													=      1
      for i in range(UpperCAmelCase   ,	0   ,	-2						):
            value *= i
      return value


if __name__ == "__main__":
 import doctest

 doctest.testmod()






