def _validate_jp2c(self, boxes):
<EOL>jp2h_lst = [idx for (idx, box) in enumerate(boxes)<EOL>if box.box_id == '<STR_LIT>']<EOL>jp2h_idx = jp2h_lst[<NUM_LIT:0>]<EOL>jp2c_lst = [idx for (idx, box) in enumerate(boxes)<EOL>if box.box_id == '<STR_LIT>']<EOL>if len(jp2c_lst) == <NUM_LIT:0>:<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>raise IOError(msg)<EOL><DEDENT>jp2c_idx = jp2c_lst[<NUM_LIT:0>]<EOL>if jp2h_idx >= jp2c_idx:<EOL><INDENT>msg = "<STR_LIT>"<EOL>raise IOError(msg)<EOL><DEDENT>
Validate the codestream box in relation to other boxes.