class_docstr: Used for compatibility across Tornado versions and to add write_lock
docstr: Close the websocket. 
code: def close(
      self, code: int | None = None, reason: str | None = None
  ) -> None:
      """Close the websocket."""
      return self._socket.close(code, reason)
  
file_path: bokeh/src/bokeh/client/websocket.py
imports: from __future__ import annotations
  import logging
  from typing import Any, Awaitable, Callable
  from tornado import locks
  from tornado.websocket import WebSocketClientConnection
label_desc: Use image node_id 2 for calling the WebSocketClientConnectionWrapper obj's underlying member method code with example usage: obj.close(code, reason) and returns: self