code: def test_append_scatter():
      expected = Figure(
          data=Data(
              [
                  Scatter(
                      x=[1, 2, 3], y=[2, 3, 4], xaxis="x5", yaxis="y5"
                  )
              ]
          ),
          layout=Layout(
              xaxis1=XAxis(
                  domain=[0.0, 0.2888888888888889], anchor="y1"
              ),
              xaxis2=XAxis(
                  domain=[0.35555555555555557, 0.6444444444444445],
                  anchor="y2",
              ),
              xaxis3=XAxis(
                  domain=[0.7111111111111111, 1.0], anchor="y3"
              ),
              xaxis4=XAxis(
                  domain=[0.0, 0.2888888888888889], anchor="y4"
              ),
              xaxis5=XAxis(
                  domain=[0.35555555555555557, 0.6444444444444445],
                  anchor="y5",
              ),
              xaxis6=XAxis(
                  domain=[0.7111111111111111, 1.0], anchor="y6"
              ),
              yaxis1=YAxis(domain=[0.575, 1.0], anchor="x1"),
              yaxis2=YAxis(domain=[0.575, 1.0], anchor="x2"),
              yaxis3=YAxis(domain=[0.575, 1.0], anchor="x3"),
              yaxis4=YAxis(domain=[0.0, 0.425], anchor="x4"),
              yaxis5=YAxis(domain=[0.0, 0.425], anchor="x5"),
              yaxis6=YAxis(domain=[0.0, 0.425], anchor="x6"),
          ),
      )
  
      trace = Scatter(x=[1, 2, 3], y=[2, 3, 4])
      fig = tls.make_subplots(rows=2, cols=3)
      fig.append_trace(trace, 2, 2)
  
      d1, d2 = strip_dict_params(fig["data"][0], expected["data"][0])
      assert d1 == d2
  
      d1, d2 = strip_dict_params(fig["layout"], expected["layout"])
      assert d1 == d2
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_append_trace.py
imports: import pytest
  from plotly.graph_objs import Data, Figure, Layout, Scatter, Scatter3d, Scene, XAxis, YAxis
  from plotly.tests.utils import strip_dict_params
  import plotly.tools
  import copy
label_desc: Use image node_id 5 for calling a global function with example usage: test_append_scatter() without return types