code: def test_set_constrained_layout(arg, state):
      fig, ax = plt.subplots(constrained_layout=arg)
      assert fig.get_constrained_layout() is state
  
imports: import gc
  import numpy
  import pytest
  import matplotlib
  from matplotlib.testing.decorators import image_comparison
  import matplotlib.pyplot
  import matplotlib.transforms
  from matplotlib import gridspec, ticker
label_desc: Use image node_id 43 for calling a global function with example usage: test_set_constrained_layout(arg, state) without return types