

from unittest.mock import patch

import datasets
from datasets import Dataset




def      UpperCAmelCase__							(     ):





  '''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 _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 :					int      , _A :					int				):





  '''simple docstring'''







  a__    =1.0
  for i in range(1      , r + 1				):
    ret *= (n + 1 - i) / i
  return round(_A				)




def      UpperCAmelCase__							(     _A :					int				):





  '''simple docstring'''







  return choose(8 + n      , _A				) + choose(9 + n      , _A				) - 10




def      UpperCAmelCase__							(     _A :					int				):





  '''simple docstring'''







  return sum(non_bouncy_exact(_A				) for i in range(1      , n + 1				)				)




def      UpperCAmelCase__							(     _A :					int = 1_00				):





  '''simple docstring'''







  return non_bouncy_upto(_A				)


if __name__ == "__main__":
       print(f"""{solution() = }""")
