class_docstr: Tests for the transform specs using the QNode
class_docstr_tok: ["Tests","for","the","transform","specs","using","the","QNode"]
docstr: Test that a user can calculate specs for different expansion strategies.
docstr_tok: ["Test","that","a","user","can","calculate","specs","for","different","expansion","strategies","."]
code: def test_expansion_strategy(self):
      """Test that a user can calculate specs for different expansion strategies."""
      circuit, params = self.make_qnode_and_params("gradient")
  
      assert circuit.expansion_strategy == "gradient"
      info = qml.specs(circuit, expansion_strategy="device")(params)
      assert circuit.expansion_strategy == "gradient"
  
      assert len(info) == 11
  
file_path: pennylane/tests/resource/test_specs.py
imports: from typing import Sequence, Callable
  from collections import defaultdict
  from contextlib import nullcontext
  import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 6 for calling the TestSpecsTransform obj's underlying member method code with example usage: obj.test_expansion_strategy() without return types