<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def polygon_scale(polygon):
 """ For a Polygon object, return the diagonal length of the AABB. Parameters polygon: shapely.geometry.Polygon object Returns scale: float, length of AABB diagonal """

    extents = np.reshape(polygon.bounds, (2, 2)).ptp(axis=0)
    scale = (extents ** 2).sum() ** .5

    return scale