code: def _update_axis(d, axis):
      _axis = axis[0]
      if not isinstance(d, dict):
          d = d.to_dict()
      from_axis = d["data"][0].pop(
          "{0}axis".format(_axis), "{0}1".format(_axis)
      )
      from_axis = _axis + "axis" + from_axis[1:]
      to_axis = _axis + "axis" + axis[1:]
      d["layout"][to_axis] = d["layout"].pop(from_axis)
      _update_traces(d, **{"{0}axis".format(_axis): axis})
  
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 32 for calling a global function with example usage: _update_axis(d, axis) without return types