code: def test_draw_mpl_with_qfunc_warns_with_expansion_strategy():
      """Test that draw warns the user about expansion_strategy being ignored."""
  
      def qfunc():
          qml.PauliZ(0)
  
      with pytest.warns(
          UserWarning,
          match="the expansion_strategy argument is ignored",
      ):
          _ = qml.draw_mpl(qfunc, expansion_strategy="gradient")
  
imports: import pytest
  import pennylane
label_desc: Use image node_id 7 for calling a global function with example usage: test_draw_mpl_with_qfunc_warns_with_expansion_strategy() without return types