def publish_collection(committer_id, collection_id):
 _publish_activity(committer_id, collection_id, feconf.ACTIVITY_TYPE_COLLECTION)

def publish_collection ( committer_id , collection_id ) : _publish_activity ( committer_id , collection_id , feconf . ACTIVITY_TYPE_COLLECTION )
this is called by the publish_collection_and_update_user_profiles function in collection_services .