<s> from orchestra . google_apps . convenience import create_document_from_template <EOL> from orchestra . google_apps . convenience import create_folder_with_permissions <EOL> from orchestra . google_apps . permissions import write_with_link_permission <EOL> import logging <EOL> logger = logging . getLogger ( __name__ ) <EOL> def create_documents ( project_data , prerequisites ) : <EOL> """<STR_LIT>""" <EOL> task_data = { } <EOL> folder_id = project_data [ '<STR_LIT>' ] <EOL> article_draft_template = project_data [ '<STR_LIT>' ] <EOL> task_data [ '<STR_LIT>' ] = create_document_from_template ( <EOL> article_draft_template , <EOL> '<STR_LIT>' , <EOL> parent_ids = [ folder_id ] , <EOL> permissions = [ write_with_link_permission ] , <EOL> ) [ '<STR_LIT>' ] <EOL> task_data [ '<STR_LIT>' ] = create_folder_with_permissions ( <EOL> folder_id , <EOL> '<STR_LIT>' , <EOL> permissions = [ write_with_link_permission ] , <EOL> ) [ '<STR_LIT:id>' ] <EOL> return task_data </s>
