def METHOD_NAME(dictionary):
    """Convert dict to bytes (for use w/ caching infrastructure).
    Parameters
    ----------
    dictionary : dict
        Dictionary to be converted to bytes
    """
    b = io.BytesIO()
    np.save(b, dictionary, allow_pickle=True)
    return b.getvalue()