code: def add_server_arguments(parser: argparse.ArgumentParser) -> None:
      """Add arguments for running API endpoint."""
      parser.add_argument(
          "--log-file",
          type=str,
          # Rasa should not log to a file by default, otherwise there will be problems
          # when running on OpenShift
          default=None,
          help="Store logs in specified file.",
      )
      parser.add_argument(
          "--use-syslog",
          action="store_true",
          help="Add syslog as a log handler",
      )
      parser.add_argument(
          "--syslog-address",
          type=str,
          default=constants.DEFAULT_SYSLOG_HOST,
          help="Address of the syslog server. --use-sylog flag is required",
      )
      parser.add_argument(
          "--syslog-port",
          type=int,
          default=constants.DEFAULT_SYSLOG_PORT,
          help="Port of the syslog server. --use-sylog flag is required",
      )
      parser.add_argument(
          "--syslog-protocol",
          type=str,
          default=constants.DEFAULT_PROTOCOL,
          help="Protocol used with the syslog server. Can be UDP (default) or TCP ",
      )
      add_endpoint_param(
          parser,
          help_text="Configuration file for the model server and the connectors as a "
          "yml file.",
      )
  
      add_server_settings_arguments(parser)
  
file_path: rasa/rasa/cli/arguments/run.py
imports: import os
  import argparse
  from typing import Union
  from rasa.cli.arguments.default_arguments import add_model_param, add_endpoint_param
  from rasa.core import constants
  from rasa.env import DEFAULT_JWT_METHOD, JWT_METHOD_ENV, JWT_SECRET_ENV, JWT_PRIVATE_KEY_ENV, AUTH_TOKEN_ENV
label_desc: Use image node_id 5 for calling a global function with example usage: add_server_arguments(parser) without return types