code: def __init__(self, model_ids: list[int], export_related: bool = True):
      self.model_ids = model_ids
      self.export_related = export_related
  
      # this will be set when calling validate()
      self._models: list[Model] = []
  
file_path: superset/superset/commands/export/models.py
imports: from collections.abc import Iterator
  from datetime import datetime, timezone
  import yaml
  from flask_appbuilder import Model
  from superset.commands.base import BaseCommand
  from superset.commands.exceptions import CommandException
  from superset.daos.base import BaseDAO
  from superset.utils.dict_import_export import EXPORT_VERSION
label_desc: Use image node_id 1 to create a new ExportModelsCommand object from inherited base classes: BaseCommand with example: obj = ExportModelsCommand(model_ids, export_related)