code: def test_draw_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(qfunc, expansion_strategy="gradient")
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.drawer import draw
label_desc: Use image node_id 7 for calling a global function with example usage: test_draw_with_qfunc_warns_with_expansion_strategy() without return types