<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def transform_bbox(bbox, target_crs):
 """ Maps bbox from current crs to target_crs :param bbox: bounding box :type bbox: geometry.BBox :param target_crs: target CRS :type target_crs: constants.CRS :return: bounding box in target CRS :rtype: geometry.BBox """

    warnings.warn("This function is deprecated, use BBox.transform method instead", DeprecationWarning, stacklevel=2)

    return bbox.transform(target_crs)