def get_collection_summary_from_model(collection_summary_model):
 return collection_domain.CollectionSummary(collection_summary_model.id, collection_summary_model.title, collection_summary_model.category, collection_summary_model.objective, collection_summary_model.language_code, collection_summary_model.tags, collection_summary_model.status, collection_summary_model.community_owned, collection_summary_model.owner_ids, collection_summary_model.editor_ids, collection_summary_model.viewer_ids, collection_summary_model.contributor_ids, collection_summary_model.contributors_summary, collection_summary_model.version, collection_summary_model.node_count, collection_summary_model.collection_model_created_on, collection_summary_model.collection_model_last_updated)

def get_collection_summary_from_model ( collection_summary_model ) : return collection_domain . CollectionSummary ( collection_summary_model . id , collection_summary_model . title , collection_summary_model . category , collection_summary_model . objective , collection_summary_model . language_code , collection_summary_model . tags , collection_summary_model . status , collection_summary_model . community_owned , collection_summary_model . owner_ids , collection_summary_model . editor_ids , collection_summary_model . viewer_ids , collection_summary_model . contributor_ids , collection_summary_model . contributors_summary , collection_summary_model . version , collection_summary_model . node_count , collection_summary_model . collection_model_created_on , collection_summary_model . collection_model_last_updated )
returns a domain object for an oppia collection summary given a collection summary model .