code: def extract_table_references(
      sql_text: str, sqla_dialect: str, show_warning: bool = True
  ) -> set["Table"]:
      """
      Return all the dependencies from a SQL sql_text.
      """
      dialect = "generic"
      tree = None
  
      if sqloxide_parse:
          for dialect, sqla_dialects in SQLOXITE_DIALECTS.items():
              if sqla_dialect in sqla_dialects:
                  break
          sql_text = RE_JINJA_BLOCK.sub(" ", sql_text)
          sql_text = RE_JINJA_VAR.sub("abc", sql_text)
          try:
              tree = sqloxide_parse(sql_text, dialect=dialect)
          except Exception as ex:  # pylint: disable=broad-except
              if show_warning:
                  logger.warning(
                      "\nUnable to parse query with sqloxide:\n%s\n%s",
                      sql_text,
                      ex,
                  )
  
      # fallback to sqlparse
      if not tree:
          parsed = ParsedQuery(sql_text)
          return parsed.tables
  
      def find_nodes_by_key(element: Any, target: str) -> Iterator[Any]:
          """
          Find all nodes in a SQL tree matching a given key.
          """
          if isinstance(element, list):
              for child in element:
                  yield from find_nodes_by_key(child, target)
          elif isinstance(element, dict):
              for key, value in element.items():
                  if key == target:
                      yield value
                  else:
                      yield from find_nodes_by_key(value, target)
  
      return {
          Table(*[part["value"] for part in table["name"][::-1]])
          for table in find_nodes_by_key(tree, "Table")
      }
  
imports: import logging
  import re
  from collections.abc import Iterator
  from dataclasses import dataclass
  from typing import Any, cast, Optional
  from urllib import parse
  import sqlparse
  from sqlalchemy import and_
  from sqlparse import keywords
  from sqlparse.lexer import Lexer
  from sqlparse.sql import Identifier, IdentifierList, Parenthesis, remove_quotes, Token, TokenList, Where
  from sqlparse.tokens import Comment, CTE, DDL, DML, Keyword, Name, Punctuation, String, Whitespace, Wildcard
  from sqlparse.utils import imt
  from superset.exceptions import QueryClauseValidationException
  from superset.utils.backports import StrEnum
label_desc: Use image node_id 11 for calling a global function with example usage: extract_table_references(sql_text, sqla_dialect, show_warning) and returns: unknown, parsed