class_docstr: The OilPriceAPI handler implementation
class_docstr_tok: ["The","OilPriceAPI","handler","implementation"]
docstr: Check connection to the handler.
  
  Returns
  -------
  StatusResponse
      Status confirmation
docstr_tok: ["Check","connection","to","the","handler",".","Returns","--","--","--","-","StatusResponse","Status","confirmation"]
code: def check_connection(self) -> StatusResponse:
      """Check connection to the handler.
  
      Returns
      -------
      StatusResponse
          Status confirmation
      """
      response = StatusResponse(False)
  
      try:
          status = self.client.get_latest_price()
          if status["code"] == 200:
              logger.info("Authentication successful")
              response.success = True
          else:
              response.success = False
              logger.info(
                  "Error connecting to OilPriceAPI. " + status["error"]
              )
              response.error_message = status["error"]
      except Exception as e:
          logger.error(f"Error connecting to OilPriceAPI: {e}!")
          response.error_message = e
  
      self.is_connected = response.success
      return response
  
file_path: mindsdb/mindsdb/integrations/handlers/oilpriceapi_handler/oilpriceapi_handler.py
imports: from collections import OrderedDict
  from mindsdb.integrations.handlers.oilpriceapi_handler.oilpriceapi_tables import OilPriceLatestTable, OilPricePastDayPriceTable
  from mindsdb.integrations.handlers.oilpriceapi_handler.oilpriceapi import OilPriceAPIClient
  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 mindsdb_sql import parse_sql
label_desc: Use image node_id 3 for calling the OilPriceAPIHandler obj's underlying member method code with example usage: obj.check_connection() and returns: response