class_docstr: Tests for the transform specs using the QNode
class_docstr_tok: ["Tests","for","the","transform","specs","using","the","QNode"]
docstr: Generates a qnode and params for use in other tests
docstr_tok: ["Generates","a","qnode","and","params","for","use","in","other","tests"]
code: def make_qnode_and_params(self, initial_expansion_strategy):
      """Generates a qnode and params for use in other tests"""
      n_layers = 2
      n_wires = 5
  
      dev = qml.device("default.qubit", wires=n_wires)
  
      @qml.qnode(dev, expansion_strategy=initial_expansion_strategy)
      def circuit(params):
          qml.BasicEntanglerLayers(params, wires=range(n_wires))
          return qml.expval(qml.PauliZ(0))
  
      params_shape = qml.BasicEntanglerLayers.shape(
          n_layers=n_layers, n_wires=n_wires
      )
      rng = np.random.default_rng(seed=10)
      params = rng.standard_normal(
          params_shape
      )  # pylint:disable=no-member
  
      return circuit, params
  
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 4 for calling the TestSpecsTransform obj's underlying member method code with example usage: obj.make_qnode_and_params(initial_expansion_strategy) and returns: circuit,  params, qml