code: def get_tasks_args(parser):
      """Provide extra arguments required for tasks."""
      group = parser.add_argument_group(title="tasks")
  
      # parameters for the knowledgeable dialogue generation
      group.add_argument(
          "--task", type=str, required=True, help="Task name."
      )
      group.add_argument(
          "--sample-input-file",
          type=str,
          default=None,
          help="Get input from file instead of interactive mode, "
          "each line is an input.",
      )
      group.add_argument(
          "--sample-output-file",
          type=str,
          default=None,
          help="Output file got from --sample-input-file",
      )
      group.add_argument(
          "--prompt-file", type=str, default=None, help="prompting file"
      )
      group.add_argument(
          "--prompt-type",
          type=str,
          default=None,
          choices=["knowledge", "response"],
          help="prompt type (knowledge or response)",
      )
      group.add_argument(
          "--num-prompt-examples",
          type=int,
          default=10,
          help="number of prompt examples",
      )
      group.add_argument(
          "--guess-file",
          type=str,
          default=None,
          help="datapath for generated sentences",
      )
      group.add_argument(
          "--answer-file",
          type=str,
          default=None,
          help="datapath for golden sentences",
      )
      group.add_argument(
          "--out-seq-length",
          type=int,
          default=100,
          help="output sequence length",
      )
      group.add_argument(
          "--api-prompt",
          default=False,
          action="store_true",
          help="setup model api for prompting",
      )
      group.add_argument(
          "--megatron-api-url",
          type=str,
          default=None,
          help="url of the megatron api",
      )
  
      return parser
  
imports: import os
  import sys
  from megatron import get_args
  from megatron.initialize import initialize_megatron
label_desc: Use image node_id 1 for calling a global function with example usage: get_tasks_args(parser) and returns: parser