code: def download_dashboards(self) -> FlaskResponse:
      if request.args.get("action") == "go":
          ids = set(request.args.getlist("id"))
          return Response(
              DashboardModel.export_dashboards(ids),
              headers=generate_download_headers("json"),
              mimetype="application/text",
          )
      return self.render_template(
          "superset/export_dashboards.html",
          dashboards_url="/dashboard/list",
      )
  
imports: import builtins
  import json
  import re
  from typing import Callable, Union
  from flask import g, redirect, request, Response
  from flask_appbuilder import expose
  from flask_appbuilder.actions import action
  from flask_appbuilder.models.sqla.interface import SQLAInterface
  from flask_appbuilder.security.decorators import has_access
  from flask_babel import gettext, lazy_gettext
  from flask_login import AnonymousUserMixin, login_user
  from superset import db, event_logger, is_feature_enabled, security_manager
  from superset.constants import MODEL_VIEW_RW_METHOD_PERMISSION_MAP, RouteMethod
  from superset.models.dashboard import Dashboard
  from superset.superset_typing import FlaskResponse
  from superset.utils import core
  from superset.views.base import BaseSupersetView, common_bootstrap_payload, DeleteMixin, generate_download_headers, SupersetModelView
  from superset.views.dashboard.mixin import DashboardMixin
label_desc: Use image node_id 3 for calling the DashboardModelView obj's underlying member method code with example usage: obj.download_dashboards() and returns: self, Response