




from typing import TypeVar

from .arrow_dataset import Dataset, _split_by_node_map_style_dataset
from .iterable_dataset import IterableDataset, _split_by_node_iterable_dataset


lowercase_      :							List[Any]    							=					TypeVar('DatasetType', Dataset, IterableDataset)


def 				__SCREAMING_SNAKE_CASE    (     snake_case_      ,       snake_case_      ,       snake_case_		):

						'''simple docstring'''


						if isinstance(UpperCAmelCase_      ,       UpperCAmelCase_		):
												return _split_by_node_map_style_dataset(UpperCAmelCase_      ,       rank=UpperCAmelCase_      ,       world_size=UpperCAmelCase_		)
						else:
												return _split_by_node_iterable_dataset(UpperCAmelCase_      ,       rank=UpperCAmelCase_      ,       world_size=UpperCAmelCase_		)





"""simple docstring"""







def     __UpperCAmelCase							(       UpperCAmelCase_       :							str    )				->     str:

	'''simple docstring'''





	return " ".join(sorted(set(sentence.split()    )    )    )


if __name__ == "__main__":
	import doctest

	doctest.testmod()





