code: def test_expansion_strategy(
      device, strategy, initial_strategy, n_lines
  ):
      """Test that the expansion strategy keyword controls what operations are drawn."""
  
      @qml.qnode(device, expansion_strategy=initial_strategy)
      def circuit():
          qml.Permute([2, 0, 1], wires=(0, 1, 2))
          return qml.expval(qml.PauliZ(0))
  
      _, ax = qml.draw_mpl(circuit, expansion_strategy=strategy)()
  
      assert len(ax.lines) == n_lines
      assert circuit.expansion_strategy == initial_strategy
      plt.close()
  
imports: import pytest
  import pennylane
label_desc: Use image node_id 5 for calling a global function with example usage: test_expansion_strategy(device, strategy, initial_strategy, n_lines) and returns: qml