<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wrap_lons(lons, base, period):
 """ Wrap longitude values into the range between base and base+period. """

    lons = lons.astype(np.float64)
    return ((lons - base + period * 2) % period) + base