def translate_bbox(bbox, y_offset=0, x_offset=0):
    """Translate bounding boxes: (0, 0) to (y_{offset}, x_{offset}).
    bbox (~numpy.ndarray): see before
    y_offset (int or float): The offset along y axis.
    x_offset (int or float): The offset along x axis.
    Return : ~numpy.ndarray:
    """
    out_bbox = bbox.copy()
    out_bbox[:, :2] += (y_offset, x_offset)
    out_bbox[:, 2:] += (y_offset, x_offset)

    return out_bbox