code: def is_subclass_of_dbapihook(node: ast.ClassDef) -> bool:
      """Return the subclass's name of a given class definition."""
      for base in node.bases:
          if isinstance(base, ast.Name) and base.id == "DbApiHook":
              return True
      return False
  
file_path: airflow/scripts/ci/pre_commit/pre_commit_check_common_sql_dependency.py
imports: from __future__ import annotations
  import ast
  import pathlib
  import sys
  from typing import Iterable
  import yaml
  from packaging.specifiers import SpecifierSet
  from rich.console import Console
label_desc: Use image node_id 2 for calling a global function with example usage: is_subclass_of_dbapihook(node) and returns: False, True