Convenience function. See
    :meth:`everest.resources.io.ConnectedResourcesSerializer.to_zipfile` for
    details.

    The given context type defaults to CSV.

def dump_resource_to_zipfile(resource, zipfile, content_type=None):
    """
    Convenience function. See
    :meth:`everest.resources.io.ConnectedResourcesSerializer.to_zipfile` for
    details.

    The given context type defaults to CSV.
    """
    if content_type is None:
        content_type = CsvMime
    srl = ConnectedResourcesSerializer(content_type)
    srl.to_zipfile(resource, zipfile)