class_docstr: The Sharepoint handler implementation.
class_docstr_tok: ["The","Sharepoint","handler","implementation","."]
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:
          connection = self.connect()
          response.success = connection.check_bearer_token_validity()
      except Exception as e:
          logger.error("Error connecting to Sharepoint! " + str(e))
          response.error_message = str(e)
  
      self.is_connected = response.success
  
      return response
  
file_path: mindsdb/mindsdb/integrations/handlers/sharepoint_handler/sharepoint_handler.py
imports: from mindsdb_sql import parse_sql
  from mindsdb.integrations.handlers.sharepoint_handler.sharepoint_api import SharepointAPI
  from mindsdb.integrations.handlers.sharepoint_handler.sharepoint_tables import ListsTable, SitesTable, ListItemsTable, SiteColumnsTable
  from mindsdb.integrations.libs.api_handler import APIHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.utilities import log
  from collections import OrderedDict
label_desc: Use image node_id 3 for calling the SharepointHandler obj's underlying member method code with example usage: obj.check_connection() and returns: response