code: def _two_plot(
      main_fig,
      secondary_fig,
      title="",
      xtitle="",
      share_xaxis=True,
      showlegend=False,
  ):
      figure = subplots.make_subplots(
          print_grid=False, shared_xaxes=share_xaxis, rows=2, cols=1
      )
      [figure.append_trace(datum, 1, 1) for datum in main_fig["data"]]
      [
          figure.append_trace(datum, 2, 1)
          for datum in secondary_fig["data"]
      ]
      figure["layout"].update(title=title, showlegend=showlegend)
      figure["layout"]["yaxis1"].update(domain=[0.40, 1.0])
      figure["layout"]["yaxis2"].update(domain=[0.0, 0.15])
  
      if xtitle:
          figure.update_xaxes(
              title_text=xtitle, row=1, col=1, title_standoff=0
          )
          figure.update_xaxes(
              title_text=xtitle, row=2, col=1, title_standoff=0
          )
      return figure
  
imports: import plotly.graph_objs
  import numpy
  from plotly import subplots
  import matplotlib.pyplot
  from numbers import Number
  import logging
label_desc: Use image node_id 9 for calling a global function with example usage: _two_plot(main_fig, secondary_fig, title, xtitle, share_xaxis, showlegend) and returns: figure