code: def has_uuid_column(table_name, bind):
      inspector = Inspector.from_engine(bind)
      columns = {
          column["name"] for column in inspector.get_columns(table_name)
      }
      has_uuid_column = "uuid" in columns
      if has_uuid_column:
          logging.info(
              "Table %s already has uuid column, skipping...",
              table_name,
          )
      else:
          logging.info(
              "Table %s doesn't have uuid column, adding...", table_name
          )
      return has_uuid_column
  
file_path: superset/superset/migrations/versions/2021-02-18_09-13_c501b7c653a3_add_missing_uuid_column.py
imports: import logging
  from importlib import import_module
  from uuid import uuid4
  import sqlalchemy
  from alembic import op
  from sqlalchemy.engine.reflection import Inspector
  from sqlalchemy.orm import load_only
  from sqlalchemy_utils import UUIDType
  from superset import db
label_desc: Use image node_id 1 for calling a global function with example usage: has_uuid_column(table_name, bind) and returns: has_uuid_column