

"""simple docstring"""




import pytest

from datasets.splits import SplitDict, SplitInfo
from datasets.utils.py_utils import asdict

@pytest.mark.parametrize(
    """split_dict"""		,					[
        SplitDict(),
        SplitDict({"""train""": SplitInfo(name="""train"""		,					num_bytes=13_37		,					num_examples=42		,					dataset_name="""my_dataset"""     )}     ),
        SplitDict({"""train""": SplitInfo(name="""train"""		,					num_bytes=13_37		,					num_examples=42     )}     ),
        SplitDict({"""train""": SplitInfo()}     ),
    ]		,					)
def 						A							(  snake_case__     ):




			'''simple docstring'''


			SCREAMING_SNAKE_CASE__										=   split_dict._to_yaml_list()
			assert len(snake_case__     ) == len(snake_case__     )
			SCREAMING_SNAKE_CASE__										=   SplitDict._from_yaml_list(snake_case__     )
			for split_name, split_info in split_dict.items():
						# dataset_name field is deprecated, and is therefore not part of the YAML dump
						SCREAMING_SNAKE_CASE__										=   None
						# the split name of split_dict takes over the name of the split info object
						SCREAMING_SNAKE_CASE__										=   split_name
			assert split_dict == reloaded




@pytest.mark.parametrize(
    """split_info"""		,					[SplitInfo(), SplitInfo(dataset_name=snake_case__     ), SplitInfo(dataset_name="""my_dataset"""     )]     )
def 						A							(  snake_case__     ):




			'''simple docstring'''


			SCREAMING_SNAKE_CASE__										=   asdict(SplitDict({"""train""": split_info}     )     )
			assert "dataset_name" in split_dict_asdict["train"]
			assert split_dict_asdict["train"]["dataset_name"] == split_info.dataset_name





"""simple docstring"""




def 						A							(  snake_case__     ):




			'''simple docstring'''


			SCREAMING_SNAKE_CASE__										=   1
			SCREAMING_SNAKE_CASE__										=   2
			while i * i <= n:
						SCREAMING_SNAKE_CASE__										=   0
						while n % i == 0:
									n //= i
									multiplicity += 1
						n_divisors *= multiplicity + 1
						i += 1
			if n > 1:
						n_divisors *= 2
			return n_divisors

def 						A							(  ):




			'''simple docstring'''


			SCREAMING_SNAKE_CASE__										=   1
			SCREAMING_SNAKE_CASE__										=   1

			while True:
						i += 1
						t_num += i

						if count_divisors(snake_case__     ) > 5_00:
									break

			return t_num


if __name__ == "__main__":
						print(solution())


