class_docstr: A class for handling connections and interactions with the Webz API.
class_docstr_tok: ["A","class","for","handling","connections","and","interactions","with","the","Webz","API","."]
docstr: Check connection to the handler
  Returns:
      HandlerStatusResponse
docstr_tok: ["Check","connection","to","the","handler","Returns",":","HandlerStatusResponse"]
code: def check_connection(self) -> StatusResponse:
      """Check connection to the handler
      Returns:
          HandlerStatusResponse
      """
      response = StatusResponse(False)
      try:
          webzio_client = self.connect()
          webzio_client.query(
              "filterWebContent", {"q": "AI", "size": 1}
          )
          response.success = True
      except Exception as e:
          response.error_message = f"Error connecting to Webz api: {e}."
  
      if response.success is False and self.is_connected is True:
          self.is_connected = False
  
      return response
  
imports: import os
  import time
  from typing import Any, Dict
  import pandas
  import webzio
  from dotty_dict import dotty
  from mindsdb_sql import parse_sql
  from mindsdb.integrations.handlers.webz_handler.webz_tables import WebzPostsTable, WebzReviewsTable
  from mindsdb.integrations.libs.api_handler import APIHandler
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.utilities import log
  from mindsdb.utilities.config import Config
label_desc: Use image node_id 4 for calling the WebzHandler obj's underlying member method code with example usage: obj.check_connection() and returns: response