code: def __init__(
      self, appKey, protocol=5, maxInactivity=120, responseTimeout=30
  ):
      params = {
          "protocol": protocol,
          "client": "Python-PyAlgoTrade",
          "version": pyalgotrade.__version__,
      }
      url = "ws://ws.pusherapp.com/app/%s?%s" % (
          appKey,
          urlencode(params),
      )
      super(WebSocketClient, self).__init__(url)
      self.setKeepAliveMgr(
          PingKeepAliveMgr(self, maxInactivity, responseTimeout)
      )
  
imports: import json
  from six.moves.urllib.parse import urlencode
  import pyalgotrade
  from pyalgotrade.websocket import client
  import pyalgotrade.logger
label_desc: Use image node_id 1 to create a new WebSocketClient object from inherited base classes: client with example: obj = WebSocketClient(appKey, protocol, maxInactivity, responseTimeout)