code: def test_bug_1462(self):
      # https: // github.com / plotly / plotly.py / issues / 1462
      fig = go.Figure(
          data=[
              go.Scatter(x=[1, 2], y=[1, 2], xaxis="x"),
              go.Scatter(x=[2, 3], y=[2, 3], xaxis="x2"),
          ]
      )
  
      layout_dict = {
          "grid": {"xaxes": ["x", "x2"], "yaxes": ["y"]},
          "xaxis2": {"matches": "x", "title": {"text": "total_bill"}},
      }
  
      fig.update(layout=layout_dict)
      updated_layout_dict = fig.layout.to_plotly_json()
  
      self.assertEqual(updated_layout_dict, layout_dict)
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_layout_subplots.py
imports: from unittest import TestCase
  import pytest
  import plotly.graph_objs
  import plotly.io
label_desc: Use image node_id 14 for calling the TestLayoutSubplots obj's underlying member method code with example usage: obj.test_bug_1462() without return types