code: def add_logging_args(params):
      logging_params = params.add_argument_group("Logging")
      logging_params.add_argument(
          "--quiet",
          "-q",
          default=False,
          action="store_true",
          help="Suppress console logging.",
      )
      logging_params.add_argument(
          "--quiet-secondary-workers",
          "-qsw",
          default=False,
          action="store_true",
          help="Suppress console logging for secondary workers in distributed training.",
      )
      logging_params.add_argument(
          "--no-logfile",
          default=False,
          action="store_true",
          help="Suppress file logging",
      )
      log_levels = ["INFO", "DEBUG", "ERROR"]
      logging_params.add_argument(
          "--loglevel",
          "--log-level",
          default="INFO",
          choices=log_levels,
          help="Log level. Default: %(default)s.",
      )
      logging_params.add_argument(
          "--loglevel-secondary-workers",
          default="INFO",
          choices=log_levels,
          help="Console log level for secondary workers. Default: %(default)s.",
      )
  
imports: import argparse
  import os
  import sys
  import types
  from typing import Any, Callable, Dict, List, Tuple, Optional
  import yaml
  from sockeye.utils import smart_open
  from .None import constants
label_desc: Use image node_id 16 for calling a global function with example usage: add_logging_args(params) without return types