def _split_task_directory(self, task_dir):
if '<STR_LIT:.>' in task_dir:<EOL><INDENT>return task_dir.split('<STR_LIT:.>')<EOL><DEDENT>else:<EOL><INDENT>return task_dir, None<EOL><DEDENT>
Return task_id and task_attempt from dir_name.