code: def _register(self):
      super()._register()
      self._parser.add_argument("-d", "--diagnose", action="store_true")
      self._parser.add_argument(
          "-a",
          "--attach",
          action="store_true",
          help="Set up an SSH tunnel, and print logs as they follow.",
      )
      self._parser.add_argument(
          "--ssh-identity",
          metavar="SSH_PRIVATE_KEY",
          help="The private SSH key path for SSH tunneling",
          type=Path,
          dest="ssh_identity_file",
      )
      self._parser.add_argument("run_name")
  
file_path: dstack/src/dstack/_internal/cli/commands/logs.py
imports: import argparse
  import sys
  from pathlib import Path
  from dstack._internal.cli.commands import APIBaseCommand
  from dstack._internal.core.errors import CLIError
  from dstack._internal.core.services.ssh.ports import PortUsedError
label_desc: Use image node_id 1 for calling the LogsCommand obj's underlying member method code with example usage: obj._register() without return types