class_docstr: A class for checking the connection to the TripAdvisor Content API and making requests.
  
  Attributes:
      api_key (str): The unique API key to access Tripadvisor content.
docstr: Check the connection with TripAdvisor
docstr_tok: ["Check","the","connection","with","TripAdvisor"]
code: def checkTripAdvisorConnection(self):
      """
      Check the connection with TripAdvisor
      """
      url = "https://api.content.tripadvisor.com/api/v1/location/search?language=en&key={api_key}&searchQuery={searchQuery}".format(
          api_key=self.api_key, searchQuery="London"
      )
  
      headers = {"accept": "application/json"}
      response = requests.get(url, headers=headers)
      status_code = response.status_code
  
      if status_code >= 400 and status_code <= 499:
          raise Exception("Client error: " + response.text)
  
      if status_code >= 500 and status_code <= 599:
          raise Exception("Server error: " + response.text)
  
file_path: mindsdb/mindsdb/integrations/handlers/tripadvisor_handler/tripadvisor_api.py
imports: import requests
  from requests import Response
  from enum import Enum
label_desc: Use image node_id 2 for calling the TripAdvisorAPI obj's underlying member method code with example usage: obj.checkTripAdvisorConnection() without return types