code: def upgrade():
      bind = op.get_bind()
      session = db.Session(bind=bind)
      for slc in session.query(Slice).filter(
          or_(
              Slice.viz_type == "deck_path",
              Slice.viz_type == "deck_geojson",
              Slice.viz_type == "deck_polygon",
          )
      ):
          try:
              params = json.loads(slc.params)
              if not params.get("line_width_unit"):
                  params["line_width_unit"] = "meters"
                  slc.params = json.dumps(params)
          except Exception:
              logging.exception(
                  f"Unable to parse params for slice {slc.id}"
              )
      session.commit()
      session.close()
  
file_path: superset/superset/migrations/versions/2023-07-19_17-54_ee179a490af9_deckgl_path_width_units.py
imports: import json
  import logging
  from alembic import op
  from sqlalchemy import Column, Integer, or_, String, Text
  from sqlalchemy.ext.declarative import declarative_base
  from superset import db
label_desc: Use image node_id 1 for calling a global function with example usage: upgrade() without return types