def check_bbox(bbox):
for name, value in zip(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'], bbox[:<NUM_LIT:4>]):<EOL><INDENT>if not <NUM_LIT:0> <= value <= <NUM_LIT:1>:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(<EOL>bbox=bbox,<EOL>name=name,<EOL>value=value,<EOL>)<EOL>)<EOL><DEDENT><DEDENT>x_min, y_min, x_max, y_max = bbox[:<NUM_LIT:4>]<EOL>if x_max <= x_min:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(<EOL>bbox=bbox,<EOL>))<EOL><DEDENT>if y_max <= y_min:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(<EOL>bbox=bbox,<EOL>))<EOL><DEDENT>
Check if bbox boundaries are in range 0, 1 and minimums are lesser then maximums