code: def upgrade():
      op.create_index(
          "ti_state", "task_instance", ["state"], unique=False
      )
  
imports: from __future__ import annotations
  from alembic import op
label_desc: Use image node_id 1 for calling a global function with example usage: upgrade() without return types