code: def connect(self) -> None:
      _logger.debug(f"Connect to {self._url}")
      assert not self._closing
      self._ensure_conn()
  
file_path: nni/nni/runtime/command_channel/websocket/channel.py
imports: from __future__ import annotations
  import logging
  import time
  from ..base import Command, CommandChannel
  from .connection import WsConnection
label_desc: Use image node_id 2 for calling the WsChannelClient obj's underlying member method code with example usage: obj.connect() without return types