class_docstr: Tests that the template defines the correct decomposition.
docstr: Checks the queue for the default settings.
docstr_tok: ["Checks","the","queue","for","the","default","settings","."]
code: def test_expansion(
      self, n_wires, weight_shape, expected_names, expected_wires
  ):
      """Checks the queue for the default settings."""
  
      weights = np.random.random(size=weight_shape)
      initial_layer = np.random.randn(n_wires)
  
      op = qml.SimplifiedTwoDesign(
          initial_layer, weights, wires=range(n_wires)
      )
      queue = op.expand().operations
  
      for i, gate in enumerate(queue):
          assert gate.name == expected_names[i]
          assert gate.wires.labels == tuple(expected_wires[i])
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 1 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_expansion(n_wires, weight_shape, expected_names, expected_wires) without return types