code: def get_ref(figure):
      d = {}
      figure = fig_to_dict(figure)
      for trace in figure["data"]:
          name = (
              "{0}_".format(trace["name"])
              if trace["name"] in d
              else trace["name"]
          )
          x = trace["xaxis"] if "xaxis" in trace else "x1"
          y = trace["yaxis"] if "yaxis" in trace else "y1"
          d[name] = (x, 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 16 for calling a global function with example usage: get_ref(figure) and returns: d