<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _array2cstr(arr):
 """ Serializes a numpy array to a compressed base64 string """

    out = StringIO()
    np.save(out, arr)
    return b64encode(out.getvalue())