code: def insert_model(dashboard: Model) -> None:
      session.add(dashboard)
      session.commit()
      session.refresh(dashboard)
  
imports: import logging
  from typing import Optional
  from flask_appbuilder import Model
  from flask_appbuilder.security.sqla.models import User
  from superset import db
  from superset.connectors.sqla.models import SqlaTable, sqlatable_user
  from superset.models.core import Database
  from superset.models.dashboard import Dashboard, dashboard_slices, dashboard_user, DashboardRoles
  from superset.models.slice import Slice, slice_user
  from tests.integration_tests.dashboards.dashboard_test_utils import random_slug, random_str, random_title
label_desc: Use image node_id 3 for calling a global function with example usage: insert_model(dashboard) without return types