code: def combine_inputs(
      dash_app, inputs, chart_inputs={}, yaxis_data={}, map_data={}
  ):
      """
      Combines all managed state (inputs, chart inputs, map inputs & yaxis inputs) within Dash into one dictionary.
      """
      all_inputs = dict_merge(
          inputs, chart_inputs, dict(yaxis=yaxis_data or {}), map_data
      )
      if is_app_root_defined(
          dash_app.server.config.get("APPLICATION_ROOT")
      ):
          all_inputs["app_root"] = dash_app.server.config[
              "APPLICATION_ROOT"
          ]
      return all_inputs
  
file_path: dtale/dtale/dash_application/drilldown_modal.py
imports: import numpy
  import pandas
  from dash.dependencies import Input, Output, State
  import dtale.global_state
  from dtale.charts.utils import AGGS
  from dtale.dash_application.charts import build_chart, bar_builder, build_axes, chart_builder_passthru
  from dtale.dash_application.exceptions import DtalePreventUpdate
  from dtale.dash_application.layout.utils import build_cols, build_option, build_selections
  from dtale.utils import classify_type, dict_merge, find_dtype, is_app_root_defined, json_date, json_float, make_list, get_dtypes
  from dtale.query import build_query, handle_predefined, run_query
  from dtale.charts.utils import MAX_GROUPS, ZAXIS_CHARTS, build_group_inputs_filter, convert_date_val_to_date
  from dtale.translations import text
label_desc: Use image node_id 1 for calling a global function with example usage: combine_inputs(dash_app, inputs, chart_inputs, yaxis_data, map_data) and returns: all_inputs