code: def create_modal(modal_id, header, content, content_id, button_id):
      modal = html.Div(
          [
              dbc.Modal(
                  [
                      dbc.ModalHeader(dbc.ModalTitle(header)),
                      dbc.ModalBody(content, id=content_id),
                      dbc.ModalFooter(
                          dbc.Button(
                              "Close",
                              id=button_id,
                              className="ml-auto",
                              n_clicks=0,
                          )
                      ),
                  ],
                  id=modal_id,
                  is_open=False,
              )
          ]
      )
      return modal
  
file_path: merlion/merlion/dashboard/pages/utils.py
imports: import dash_bootstrap_components
  from dash import html, dash_table
  import pandas
  from merlion.dashboard.settings import *
  from merlion.dashboard.utils.plot import plot_timeseries
label_desc: Use image node_id 1 for calling a global function with example usage: create_modal(modal_id, header, content, content_id, button_id) and returns: modal