

'''simple docstring'''




def  lowerCamelCase__						(  SCREAMING_SNAKE_CASE :				list    ,				SCREAMING_SNAKE_CASE :				list  ):
  UpperCAmelCase  							=		len(_A  )
  UpperCAmelCase  							=		len(_A  )
  UpperCAmelCase  							=		(
      first_input_list_length
      if first_input_list_length > second_input_list_length
      else second_input_list_length
  )
  UpperCAmelCase  							=		[]
  for char_count in range(_A  ):
    if char_count < first_input_list_length:
      output_result_list.append(first_input_list[char_count]  )
    if char_count < second_input_list_length:
      output_result_list.append(second_input_list[char_count]  )

  return output_result_list


if __name__ == "__main__":
    print(alternative_list_arrange(['A', 'B', 'C'], [1, 2, 3, 4, 5]), end=' ')





'''simple docstring'''




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


_a			:	Optional[int]								=  TypeVar('DatasetType', Dataset, IterableDataset)


def  lowerCamelCase__						(  SCREAMING_SNAKE_CASE :				DatasetType    ,				SCREAMING_SNAKE_CASE :				int    ,				SCREAMING_SNAKE_CASE :				int  ):
  if isinstance(SCREAMING_SNAKE_CASE    ,				SCREAMING_SNAKE_CASE  ):
    return _split_by_node_map_style_dataset(SCREAMING_SNAKE_CASE    ,				rank=SCREAMING_SNAKE_CASE    ,				world_size=SCREAMING_SNAKE_CASE  )
  else:
    return _split_by_node_iterable_dataset(SCREAMING_SNAKE_CASE    ,				rank=SCREAMING_SNAKE_CASE    ,				world_size=SCREAMING_SNAKE_CASE  )


