


from unittest.mock import patch

import datasets
from datasets import Dataset







def     __magic_name__  (      ):
	'''simple docstring'''


	lowerCamelCase_			:							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()





from __future__ import annotations





class    lowerCAmelCase__				:






						"""simple docstring"""




						def __init__(   self				,							a_     ):
							lowerCamelCase_			:							List[str]      =       value
							lowerCamelCase_			:							Node | None      =       None
							lowerCamelCase_			:							Node | None      =       None





class    lowerCAmelCase__				:






						"""simple docstring"""
						__UpperCAmelCase   :		int




						def __init__(   self     ):
							lowerCamelCase_			:							str      =       0




						def 					_UpperCamelCase			(   self				,							a_				,							a_     ):
							if node is None:
								return

							if path_sum == self.target:
								self.paths += 1

							if node.left:
								self.depth_first_search(node.left				,							path_sum + node.left.value     )
							if node.right:
								self.depth_first_search(node.right				,							path_sum + node.right.value     )




						def 					_UpperCamelCase			(   self				,							a_				,							a_ = None     ):
							if node is None:
								return 0
							if target is not None:
								lowerCamelCase_			:							List[str]      =       target

							self.depth_first_search(a_				,							node.value     )
							self.path_sum(node.left     )
							self.path_sum(node.right     )

							return self.paths


if __name__ == "__main__":
							import doctest

							doctest.testmod()

