def METHOD_NAME(self, action="GET", url="/", data=None, query_params=None):
    if data is None:
        data = {}
    if query_params is None:
        query_params = {}
    else:
        query_params["api_key"] = self._get_provider_option("auth_token")
    response = requests.request(
        action, self.api_endpoint + url, params=query_params
    )
    tree = ElementTree.ElementTree(ElementTree.fromstring(response.content))
    root = tree.getroot()
    if root.tag == "error":
        raise Exception(f"An error occurred: {root.text}")
    response.raise_for_status()
    return root