code: def add_parser(queue_subparsers, parent_parser):
      QUEUE_LOGS_HELP = "Show output logs for running and completed experiment queue tasks."
      queue_logs_parser = queue_subparsers.add_parser(
          "logs",
          parents=[parent_parser],
          description=append_doc_link(QUEUE_LOGS_HELP, "queue/logs"),
          help=QUEUE_LOGS_HELP,
          formatter_class=formatter.RawDescriptionHelpFormatter,
      )
      queue_logs_parser.add_argument(
          "-e",
          "--encoding",
          help="Text encoding for log output. Defaults to system locale encoding.",
          metavar="<encoding>",
      )
      queue_logs_parser.add_argument(
          "-f",
          "--follow",
          help=(
              "Attach to task and follow additional live output. Only "
              "applicable if the task is still running."
          ),
          action="store_true",
      )
      queue_logs_parser.add_argument(
          "task",
          help="Task to show.",
          metavar="<task>",
      )
      queue_logs_parser.set_defaults(func=CmdQueueLogs)
  
file_path: dvc/dvc/commands/queue/logs.py
imports: from dvc.cli import formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.log import logger
label_desc: Use image node_id 1 for calling a global function with example usage: add_parser(queue_subparsers, parent_parser) without return types