def brkl2kvlist(arr,interval,sub_pos=<NUM_LIT:1>,**kwargs):
lngth = arr.__len__()<EOL>brkseqs1 = init_range(<NUM_LIT:0>,lngth,interval)<EOL>brkseqs2 = init_range(sub_pos,lngth,interval)<EOL>brkseqs = interleave(brkseqs1,brkseqs2)<EOL>l = broken_seqs(arr,brkseqs)<EOL>kl = select_evens(l)<EOL>vl = select_odds(l)<EOL>if("<STR_LIT>" in kwargs):<EOL><INDENT>single_key = kwargs['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>single_key = True<EOL><DEDENT>if(sub_pos == <NUM_LIT:1>):<EOL><INDENT>if(single_key):<EOL><INDENT>kl = mapv(kl,lambda ele:ele[<NUM_LIT:0>])<EOL><DEDENT>else:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>else:<EOL><INDENT>pass<EOL><DEDENT>return((kl,vl))<EOL>
arr = ["color1","r1","g1","b1","a1","color2","r2","g2","b2","a2"]
brkl2kvlist(arr,5)
(['color1', 'color2'], [['r1', 'g1', 'b1', 'a1'], ['r2', 'g2', 'b2', 'a2']])
brkl2kvlist(arr,5,2)
([['color1', 'r1'], ['color2', 'r2']], [['g1', 'b1', 'a1'], ['g2', 'b2', 'a2']])