Simplify stdlib code by using itertools.batched()
#5658
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention