def load_collection_from_file(resource, filename, content_type=None):
    """
    Creates a new collection for the registered resource and calls
    `load_into_collection_from_file` with it.
    """
    coll = create_staging_collection(resource)
    load_into_collection_from_file(coll, filename,
                                   content_type=content_type)
    return coll
Creates a new collection for the registered resource and calls
    `load_into_collection_from_file` with it.