code: def __init__(self, model_id: int, data: dict[str, Any]):
      self._model_id = model_id
      self._properties = data.copy()
      self._model: Optional[Dashboard] = None
  
file_path: superset/superset/commands/dashboard/update.py
imports: import json
  import logging
  from typing import Any, Optional
  from flask_appbuilder.models.sqla import Model
  from marshmallow import ValidationError
  from superset import security_manager
  from superset.commands.base import BaseCommand, UpdateMixin
  from superset.commands.dashboard.exceptions import DashboardForbiddenError, DashboardInvalidError, DashboardNotFoundError, DashboardSlugExistsValidationError, DashboardUpdateFailedError
  from superset.commands.utils import populate_roles
  from superset.daos.dashboard import DashboardDAO
  from superset.daos.exceptions import DAOUpdateFailedError
  from superset.exceptions import SupersetSecurityException
  from superset.extensions import db
  from superset.models.dashboard import Dashboard
label_desc: Use image node_id 1 to create a new UpdateDashboardCommand object from inherited base classes: UpdateMixin, BaseCommand with example: obj = UpdateDashboardCommand(model_id, data)