code: def get_dom(figure):
      d = {}
      which = get_which(figure)
      axis_def = get_def(figure)
      for k in ("x", "y"):
          d[k] = {}
          for y in which[k]:
              item = axis_def[y]
              domain = (
                  "[0.0, 1.0]"
                  if "domain" not in item
                  else str(item["domain"])
              )
              if domain not in d[k]:
                  d[k][domain] = {}
              s = "left" if k == "y" else "bottom"
              side = s if "side" not in item else item["side"]
              d[k][domain][side] = y
      return d
  
imports: import copy
  import numpy
  import pandas
  import plotly.offline
  import plotly.figure_factory
  from plotly.graph_objs import Figure, Scatter, Line
  from plotly.subplots import make_subplots
  from .None import themes
  from .None import auth, ta
  from .colors import normalize, to_rgba
  from .utils import check_kwargs, deep_update, dict_replace_keyword, kwargs_from_keyword, merge_dict, is_list, make_list
label_desc: Use image node_id 21 for calling a global function with example usage: get_dom(figure) and returns: d