code: def validate(self) -> None:
      # Validate/populate model exists
      self._model = DatasetDAO.find_by_id(self._model_id)
      if not self._model:
          raise DatasetNotFoundError()
      # Check ownership
      try:
          security_manager.raise_for_ownership(self._model)
      except SupersetSecurityException as ex:
          raise DatasetForbiddenError() from ex
  
file_path: superset/superset/commands/dataset/refresh.py
imports: import logging
  from typing import Optional
  from flask_appbuilder.models.sqla import Model
  from superset import security_manager
  from superset.commands.base import BaseCommand
  from superset.commands.dataset.exceptions import DatasetForbiddenError, DatasetNotFoundError, DatasetRefreshFailedError
  from superset.connectors.sqla.models import SqlaTable
  from superset.daos.dataset import DatasetDAO
  from superset.exceptions import SupersetSecurityException
label_desc: Use image node_id 3 for calling the RefreshDatasetCommand obj's underlying member method code with example usage: obj.validate() without return types