code: def test_assign_subplot2(self):
      # Init xaxis2
      self.layout.xaxis2 = go.layout.XAxis()
  
      # Properties are initially None
      self.assertIsNone(self.layout.xaxis2.range)
  
      # Set range
      xrange = [0, 1]
      self.layout.xaxis2.range = [0, 1]
      self.assertEqual(self.layout.xaxis2.range, tuple(xrange))
  
      # Make sure range isn't shared with xaxis, or xaxis1
      self.assertIsNone(self.layout.xaxis.range)
      self.assertIsNone(self.layout.xaxis1.range)
  
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 7 for calling the TestLayoutSubplots obj's underlying member method code with example usage: obj.test_assign_subplot2() without return types