def get_batch(sequence, size, start=<NUM_LIT:0>, endpoint=None, complete=False):
batch = make_batch(sequence, size, start)<EOL>return {<EOL>"<STR_LIT>": batch.get_pagesize(),<EOL>"<STR_LIT>": batch.make_next_url(),<EOL>"<STR_LIT>": batch.make_prev_url(),<EOL>"<STR_LIT>": batch.get_pagenumber(),<EOL>"<STR_LIT>": batch.get_numpages(),<EOL>"<STR_LIT:count>": batch.get_sequence_length(),<EOL>"<STR_LIT>": make_items_for([b for b in batch.get_batch()],<EOL>endpoint, complete=complete),<EOL>}<EOL>
create a batched result record out of a sequence (catalog brains)