code: def upgrade():
      migrate(mapping={"PT0.5H": "PT30M", "P0.25Y": "P3M"})
  
file_path: superset/superset/migrations/versions/2021-10-12_11-15_32646df09c64_update_time_grain_sqla.py
imports: import json
  from alembic import op
  from sqlalchemy import Column, Integer, Text
  from sqlalchemy.ext.declarative import declarative_base
  from superset import db
label_desc: Use image node_id 2 for calling a global function with example usage: upgrade() without return types