def numeric_task_id(task_id):
<EOL>if task_id is not None:<EOL><INDENT>if task_id.startswith('<STR_LIT>'):<EOL><INDENT>return int(task_id[len('<STR_LIT>'):])<EOL><DEDENT>else:<EOL><INDENT>return int(task_id)<EOL><DEDENT><DEDENT>
Converts a task-id to the numeric task-id.

    Args:
      task_id: task-id in either task-n or n format

    Returns:
      n