code: def setup_args():
      # Get command line arguments
      parser = ParlaiParser(
          description="Dump a task to a standardized format"
      )
      parser.add_argument(
          "-n",
          "--num-examples",
          default=-1,
          type=int,
          help="Total number of exs to convert, -1 to convert all examples",
      )
      parser.add_argument(
          "-of",
          "--outfile",
          default=None,
          type=str,
          help="Output file where to save, by default will be created in tmp",
      )
      parser.add_argument(
          "-if",
          "--ignore-fields",
          default="id",
          type=str,
          help="Ignore these fields from the message (returned with .act() )",
      )
      parser.add_argument(
          "-ltim", "--log-every-n-secs", type=float, default=2
      )
      parser.set_defaults(datatype="train:stream")
      return parser
  
file_path: ParlAI/parlai/scripts/convert_data_to_parlai_format.py
imports: from parlai.core.params import ParlaiParser
  from parlai.agents.repeat_label.repeat_label import RepeatLabelAgent
  from parlai.core.worlds import create_task
  from parlai.utils.misc import msg_to_str, TimeLogger
  import parlai.utils.logging
  from parlai.core.script import ParlaiScript, register_script
  import random
  import tempfile
label_desc: Use image node_id 2 for calling a global function with example usage: setup_args() and returns: parser