code: def export_dashboards(session):
      
      logging.info('Starting export')
      dashboards = session.query(Dashboard)
      dashboard_ids = []
      for dashboard in dashboards:
          dashboard_ids.append(dashboard.id)
      data = Dashboard.export_dashboards(dashboard_ids)
      return data
docs: Returns all dashboards metadata as a json dump