code: def build_modal(map_type, loc_mode):
      return html.Div(
          [
              html.Div(
                  html.Span(
                      html.Span(
                          text("GeoJSON Options"),
                          style=dict(whiteSpace="pre-line"),
                      ),
                      className="input-group-addon d-block pt-1 pb-0 pointer",
                  ),
                  className="input-group mr-3",
                  id="open-geojson-modal",
              ),
              dbc.Modal(
                  [
                      dbc.ModalHeader(text("Custom GeoJSON Options")),
                      dbc.ModalBody(build_geojson_upload(loc_mode)),
                      dbc.ModalFooter(
                          dbc.Button(
                              text("Close"),
                              id="close-geojson-modal",
                              className="ml-auto",
                          )
                      ),
                  ],
                  id="geojson-modal",
                  size="lg",
                  centered=True,
              ),
          ],
          className="col-auto",
          style={}
          if map_type == "choropleth" and loc_mode == "geojson-id"
          else {"display": "none"},
          id="custom-geojson-input",
      )
  
file_path: dtale/dtale/dash_application/custom_geojson.py
imports: import base64
  import json
  import pandas
  import dash_bootstrap_components
  from dash.dependencies import Input, Output, State
  from dtale.dash_application import dcc, html
  from dtale.dash_application.exceptions import DtalePreventUpdate
  from dtale.dash_application.layout.utils import build_input, build_option
  from dtale.translations import text
label_desc: Use image node_id 5 for calling a global function with example usage: build_modal(map_type, loc_mode) and returns: html