code: def build_layout():
      return flatten_lists(
          [
              [
                  dcc.Store(id="saved-chart-config-{}".format(i)),
                  dcc.Store(id="prev-saved-chart-config-{}".format(i)),
                  dcc.Store(id="saved-deletes-{}".format(i), data=0),
                  html.Div(
                      [
                          html.Div(
                              [
                                  html.H3(
                                      "{} {}".format(
                                          text("Saved Chart"), i
                                      ),
                                      className="col-auto pr-3",
                                  ),
                                  html.Div(
                                      id="saved-chart-header-{}".format(
                                          i
                                      ),
                                      className="col pl-0",
                                  ),
                                  html.Div(
                                      dbc.Button(
                                          text("Delete"),
                                          id="delete-saved-btn-{}".format(
                                              i
                                          ),
                                          color="primary",
                                          className="delete-chart",
                                      ),
                                      className="col-auto",
                                  ),
                              ],
                              className="row",
                          ),
                          html.Div(id="saved-chart-{}".format(i)),
                      ],
                      id="saved-chart-div-{}".format(i),
                      className="saved-chart-div pt-5",
                      style=dict(display="none"),
                  ),
              ]
              for i in SAVED_CHART_IDS
          ]
      )
  
file_path: dtale/dtale/dash_application/saved_charts.py
imports: import dash_bootstrap_components
  from dash.dependencies import Input, Output, State
  from dtale.charts.utils import ANIMATION_CHARTS, ANIMATE_BY_CHARTS, ZAXIS_CHARTS
  from dtale.dash_application import dcc, html
  from dtale.dash_application.charts import build_chart, valid_chart
  from dtale.dash_application.exceptions import DtalePreventUpdate
  from dtale.dash_application.layout.utils import build_hoverable
  from dtale.utils import dict_merge, is_app_root_defined, flatten_lists, make_list
  from dtale.translations import text
label_desc: Use image node_id 1 for calling a global function with example usage: build_layout() and returns: flatten_lists