class_docstr: The PayPal handler implementation.
class_docstr_tok: ["The","PayPal","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()
          connection.get_access_token()
          response.success = True
      except Exception as e:
          logger.error(f"Error connecting to PayPal!")
          response.error_message = str(e)
  
      self.is_connected = response.success
  
      return response
  
file_path: mindsdb/mindsdb/integrations/handlers/paypal_handler/paypal_handler.py
imports: import paypalrestsdk
  from mindsdb.integrations.handlers.paypal_handler.paypal_tables import InvoicesTable, PaymentsTable, SubscriptionsTable, OrdersTable, PayoutsTable
  from mindsdb.integrations.libs.api_handler import APIHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.utilities import log
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb_sql import parse_sql
  from collections import OrderedDict
label_desc: Use image node_id 3 for calling the PayPalHandler obj's underlying member method code with example usage: obj.check_connection() and returns: response