code: def setup_args(parser=None):
      if parser is None:
          parser = ParlaiParser(
              True,
              True,
              "Interactive chat with a model on the command line",
          )
      parser.add_argument(
          "-d", "--display-examples", type="bool", default=False
      )
      parser.add_argument(
          "--display-prettify",
          type="bool",
          default=False,
          help="Set to use a prettytable when displaying "
          "examples with text candidates",
      )
      parser.add_argument(
          "--display-add-fields",
          type=str,
          default="",
          help='Display these fields when verbose is off (e.g., "--display-add-fields label_candidates,beam_texts")',
      )
      parser.add_argument(
          "-it",
          "--interactive-task",
          type="bool",
          default=True,
          help="Create interactive version of task",
      )
      parser.add_argument(
          "--outfile",
          type=str,
          default="",
          help="Saves a jsonl file containing all of the task examples and "
          "model replies. Set to the empty string to not save at all",
      )
      parser.add_argument(
          "--save-format",
          type=str,
          default="conversations",
          choices=["conversations", "parlai"],
          help="Format to save logs in. conversations is a jsonl format, parlai is a text format.",
      )
      parser.set_defaults(interactive_mode=True, task="interactive")
      LocalHumanAgent.add_cmdline_args(parser, partial_opt=None)
      WorldLogger.add_cmdline_args(parser, partial_opt=None)
      return parser
  
file_path: ParlAI/parlai/scripts/interactive.py
imports: from parlai.core.params import ParlaiParser
  from parlai.core.agents import create_agent
  from parlai.core.worlds import create_task
  from parlai.core.script import ParlaiScript, register_script
  from parlai.utils.world_logging import WorldLogger
  from parlai.agents.local_human.local_human import LocalHumanAgent
  import parlai.utils.logging
  import random
label_desc: Use image node_id 1 for calling a global function with example usage: setup_args(parser) and returns: parser