<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def bbox_transpose(bbox, axis, rows, cols):
 """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. """

    x_min, y_min, x_max, y_max = bbox
    if axis != 0 and axis != 1:
        raise ValueError('Axis must be either 0 or 1.')
    if axis == 0:
        bbox = [y_min, x_min, y_max, x_max]
    if axis == 1:
        bbox = [1 - y_max, 1 - x_max, 1 - y_min, 1 - x_min]
    return bbox