code: def __init__(
      self,
      url: str,
      session: OAuth2Session,
      proxies: Optional[dict] = None,
  ):
      self._url = url
      self._session = session
      self._proxies = proxies
  
imports: import threading
  from typing import Optional
  from requests_oauthlib import OAuth2Session
  from neptune.common.websockets.reconnecting_websocket import ReconnectingWebsocket
label_desc: Use image node_id 1 to create a new WebsocketsFactory object  with example: obj = WebsocketsFactory(url, session, proxies)