class_docstr: A class for handling connections and interactions with the Hubspot API.
docstr: Checks whether the API client is connected to Hubspot.
  
  Returns:
      StatusResponse: A status response indicating whether the API client is connected to Hubspot.
code: def check_connection(self) -> StatusResponse:
      """Checks whether the API client is connected to Hubspot.
  
      Returns:
          StatusResponse: A status response indicating whether the API client is connected to Hubspot.
      """
  
      response = StatusResponse(False)
  
      try:
          self.connect()
          response.success = True
  
      except Exception as e:
          logger.error(f"Error connecting to Hubspot: {e}")
          response.error_message = e
  
      self.is_connected = response.success
      return response
  
file_path: mindsdb/mindsdb/integrations/handlers/hubspot_handler/hubspot_handler.py
imports: from hubspot import HubSpot
  from mindsdb.integrations.handlers.hubspot_handler.hubspot_tables import ContactsTable, CompaniesTable, DealsTable
  from mindsdb.integrations.libs.api_handler import APIHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse
  from mindsdb.utilities import log
  from mindsdb_sql import parse_sql
label_desc: Use image node_id 3 for calling the HubspotHandler obj's underlying member method code with example usage: obj.check_connection() and returns: response