code: def upgrade():
      with op.batch_alter_table("tab_state") as batch_op:
          batch_op.add_column(
              sa.Column("saved_query_id", sa.Integer(), nullable=True)
          )
          batch_op.create_foreign_key(
              "saved_query_id",
              "saved_query",
              ["saved_query_id"],
              ["id"],
          )
  
imports: import sqlalchemy
  from alembic import op
label_desc: Use image node_id 1 for calling a global function with example usage: upgrade() without return types