code: def upgrade(viz_type: str) -> None:
      """Upgrade a viz to the latest version."""
      migrate(VizType(viz_type))
  
file_path: superset/superset/cli/viz_migrations.py
imports: from enum import Enum
  import click
  from click_option_group import optgroup, RequiredMutuallyExclusiveOptionGroup
  from flask.cli import with_appcontext
  from superset import db
label_desc: Use image node_id 2 for calling a global function with example usage: upgrade(viz_type) without return types