def bbox_transpose(bbox, axis, rows, cols):
x_min, y_min, x_max, y_max = bbox<EOL>if axis != <NUM_LIT:0> and axis != <NUM_LIT:1>:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if axis == <NUM_LIT:0>:<EOL><INDENT>bbox = [y_min, x_min, y_max, x_max]<EOL><DEDENT>if axis == <NUM_LIT:1>:<EOL><INDENT>bbox = [<NUM_LIT:1> - y_max, <NUM_LIT:1> - x_max, <NUM_LIT:1> - y_min, <NUM_LIT:1> - x_min]<EOL><DEDENT>return bbox<EOL>
Transposes a bounding box along given axis.

    Args:
        bbox (tuple): A tuple (x_min, y_min, x_max, y_max).
        axis (int): 0 - main axis, 1 - secondary axis.
        rows (int): Image rows.
        cols (int): Image cols.