def _dag_file_to_dict(self):
try:<EOL><INDENT>dag_file = open(os.path.join(self.workdir, "<STR_LIT>"))<EOL>dag_json = json.load(dag_file)<EOL><DEDENT>except (FileNotFoundError, json.decoder.JSONDecodeError):<EOL><INDENT>logger.warning(colored_print(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>"))<EOL>dag_json = {}<EOL><DEDENT>return dag_json<EOL>
Function that opens the dotfile named .treeDag.json in the current
        working directory

        Returns
        -------
        Returns a dictionary with the dag object to be used in the post
        instance available through the method _establish_connection