code: def setup_args():
      """
      Set up args, specifically for the port number.
  
      :return: A parser that parses the port from commandline arguments.
      """
      parser = ParlaiParser(False, False)
      parser_grp = parser.add_argument_group("Terminal Chat")
      parser_grp.add_argument(
          "--port",
          default=35496,
          type=int,
          help="Port to run the terminal chat server",
      )
      parser_grp.add_argument(
          "--host",
          default="localhost",
          type=str,
          help="Host to connect to.",
      )
      return parser.parse_args()
  
file_path: ParlAI/parlai/chat_service/services/terminal_chat/client.py
imports: import json
  import uuid
  import websocket
  import time
  import threading
  from parlai.core.params import ParlaiParser
label_desc: Use image node_id 8 for calling a global function with example usage: setup_args() and returns: parser