def group_list(
array: (list, tuple, set),
group_len: int = 2,
space: int = 0,
*,
limit: int = None,
add_lost: bool = True,
reverse_groups: bool = True
) -> (list, tuple, set):
length = len(array)
group_len = int(group_len)
space = int(space)
if limit is None:
limit = length
# тело
length = len(array)
group_len = int(group_len)
space = int(space)
if limit is None:
limit = length