code: def upgrade():
      with op.batch_alter_table("logs") as batch_op:
          if utils.table_has_column("logs", "path"):
              batch_op.drop_column("path")
          if utils.table_has_column("logs", "path_no_int"):
              batch_op.drop_column("path_no_int")
          if utils.table_has_column("logs", "ref"):
              batch_op.drop_column("ref")
  
imports: import sqlalchemy
  from alembic import op
  from superset.migrations.shared import utils
label_desc: Use image node_id 1 for calling a global function with example usage: upgrade() without return types