class_docstr: Hook for AnalyticDB MySQL Spark through the REST API.
  
  :param adb_spark_conn_id: The Airflow connection used for AnalyticDB MySQL Spark credentials.
  :param region: AnalyticDB MySQL region you want to submit spark application.
class_docstr_tok: ["Hook","for","AnalyticDB","MySQL","Spark","through","the","REST","API",".",":","param","adb_spark_conn_id",":","The","Airflow","connection","used","for","AnalyticDB","MySQL","Spark","credentials",".",":","param","region",":","AnalyticDB","MySQL","region","you","want","to","submit","spark","application","."]
docstr: Check the values in the provided list can be converted to strings.
  
  :param vals: list to validate
docstr_tok: ["Check","the","values","in","the","provided","list","can","be","converted","to","strings",".",":","param","vals",":","list","to","validate"]
code: def _validate_list_of_stringables(
      vals: Sequence[str | int | float],
  ) -> bool:
      """
      Check the values in the provided list can be converted to strings.
  
      :param vals: list to validate
      """
      if (
          vals is None
          or not isinstance(vals, (tuple, list))
          or not all(isinstance(val, (str, int, float)) for val in vals)
      ):
          raise ValueError("List of strings expected")
      return True
  
imports: from __future__ import annotations
  import json
  from enum import Enum
  from typing import Any, Sequence
  from alibabacloud_adb20211201.client import Client
  from alibabacloud_adb20211201.models import GetSparkAppLogRequest, GetSparkAppStateRequest, GetSparkAppWebUiAddressRequest, KillSparkAppRequest, SubmitSparkAppRequest, SubmitSparkAppResponse
  from alibabacloud_tea_openapi.models import Config
  from airflow.exceptions import AirflowException
  from airflow.hooks.base import BaseHook
  from airflow.utils.log.logging_mixin import LoggingMixin
label_desc: Use image node_id 10 for calling the AnalyticDBSparkHook obj's underlying member method code with example usage: obj._validate_list_of_stringables(vals) and returns: True