class_docstr: Hook for Apache Livy through the REST API.
  
  :param livy_conn_id: reference to a pre-defined Livy Connection.
  :param extra_options: A dictionary of options passed to Livy.
  :param extra_headers: A dictionary of headers passed to the HTTP request to livy.
  :param auth_type: The auth type for the service.
  
  .. seealso::
      For more details refer to the Apache Livy API reference:
      https://livy.apache.org/docs/latest/rest-api.html
class_docstr_tok: ["Hook","for","Apache","Livy","through","the","REST","API",".",":","param","livy_conn_id",":","reference","to","a","pre-defined","Livy","Connection",".",":","param","extra_options",":","A","dictionary","of","options","passed","to","Livy",".",":","param","extra_headers",":","A","dictionary","of","headers","passed","to","the","HTTP","request","to","livy",".",":","param","auth_type",":","The","auth","type","for","the","service",".","..","seealso",":",":","For","more","details","refer","to","the","Apache","Livy","API","reference",":","https",":","\/\/livy.apache.org\/docs\/latest\/rest-api.html"]
docstr: Check configuration values are either strings or ints.
  
  :param conf: configuration variable
  :return: true if valid
docstr_tok: ["Check","configuration","values","are","either","strings","or","ints",".",":","param","conf",":","configuration","variable",":","return",":","true","if","valid"]
code: def _validate_extra_conf(conf: dict[Any, Any]) -> bool:
      """
      Check configuration values are either strings or ints.
  
      :param conf: configuration variable
      :return: true if valid
      """
      if conf:
          if not isinstance(conf, dict):
              raise ValueError("'conf' argument must be a dict")
          if not all(
              isinstance(v, (str, int)) and v != ""
              for v in conf.values()
          ):
              raise ValueError(
                  "'conf' values must be either strings or ints"
              )
      return True
  
imports: from __future__ import annotations
  import asyncio
  import json
  import re
  from enum import Enum
  from typing import TYPE_CHECKING, Any, Sequence
  import aiohttp
  import requests
  from aiohttp import ClientResponseError
  from asgiref.sync import sync_to_async
  from airflow.exceptions import AirflowException
  from airflow.providers.http.hooks.http import HttpAsyncHook, HttpHook
  from airflow.utils.log.logging_mixin import LoggingMixin
label_desc: Use image node_id 16 for calling the LivyHook obj's underlying member method code with example usage: obj._validate_extra_conf(conf) and returns: True