def _create_osf_project(dlgr_id, description=None):
if not description:<EOL><INDENT>description = "<STR_LIT>".format(dlgr_id)<EOL><DEDENT>r = requests.post(<EOL>"<STR_LIT>".format(root),<EOL>data={<EOL>"<STR_LIT:type>": "<STR_LIT>",<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:title>": "<STR_LIT>".format(dlgr_id[<NUM_LIT:0>:<NUM_LIT:8>]),<EOL>"<STR_LIT:description>": description,<EOL>},<EOL>headers={"<STR_LIT>": "<STR_LIT>".format(config.get("<STR_LIT>"))},<EOL>)<EOL>r.raise_for_status()<EOL>osf_id = r.json()["<STR_LIT:data>"]["<STR_LIT:id>"]<EOL>logger.info("<STR_LIT>".format(osf_id))<EOL>return osf_id<EOL>
Create a project on the OSF.