code: def __exit__(self, exc_type, exc_val, exc_tb):
      self.detach()
  
file_path: dstack/src/dstack/_internal/core/services/ssh/attach.py
imports: import atexit
  import re
  import subprocess
  import time
  from typing import Optional, Tuple
  from dstack._internal.core.errors import SSHError
  from dstack._internal.core.services.configs import ConfigManager
  from dstack._internal.core.services.ssh.ports import PortsLock
  from dstack._internal.core.services.ssh.tunnel import ClientTunnel
  from dstack._internal.utils.path import PathLike
  from dstack._internal.utils.ssh import get_ssh_config, include_ssh_config, update_ssh_config
label_desc: Use image node_id 6 for calling the SSHAttach obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_val, exc_tb) without return types