





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				    =      TypeVar("""DatasetType""", Dataset, IterableDataset)


def        __SCREAMING_SNAKE_CASE	(				__lowercase:		DatasetType  ,				__lowercase:		int  ,				__lowercase:		int):



  '''simple docstring'''






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







def        __SCREAMING_SNAKE_CASE	(				__lowercase:		int = 10_00):



  '''simple docstring'''






  __lowerCAmelCase								=					0
  for i in range(__lowercase):
    if i % 3 == 0 or i % 5 == 0:
      result += i
  return result


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