code: def subplot_fig_fixture():
      fig = px.scatter(
          px.data.tips(),
          x="total_bill",
          y="tip",
          facet_row="smoker",
          facet_col="sex",
      )
      # explicitly set domains so that we know what they will be
      # these could be anything but we make them plausible
      for ax, dom in zip(
          [("x", ""), ("x", "2"), ("x", "3"), ("x", "4")],
          [(0, 0.4), (0.5, 0.9), (0, 0.4), (0.5, 0.9)],
      ):
          axname = ax[0] + "axis" + ax[1]
          fig["layout"][axname]["domain"] = dom
      for ax, dom in zip(
          [("y", ""), ("y", "2"), ("y", "3"), ("y", "4")],
          [(0, 0.4), (0, 0.4), (0.5, 0.9), (0.5, 0.9)],
      ):
          axname = ax[0] + "axis" + ax[1]
          fig["layout"][axname]["domain"] = dom
      return fig
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_optional/test_autoshapes/test_axis_span_shapes.py
imports: import plotly.graph_objs
  from plotly.subplots import make_subplots
  from plotly.basedatatypes import _indexing_combinations
  import plotly.express
  import pytest
  from .common import _cmp_partial_dict, _check_figure_layout_objects
label_desc: Use image node_id 1 for calling a global function with example usage: subplot_fig_fixture() and returns: fig