def METHOD_NAME(array):
    """Convert np.array-like object to bytes (for use w/ caching infrastructure).
    Parameters
    ----------
    array : list or numpy array-like object
        Object to be converted to bytes
    """
    b = io.BytesIO()
    np.save(b, array)
    return b.getvalue()