class_docstr: Tests that the template defines the correct decomposition.
docstr: Checks that custom rotation gate is used.
docstr_tok: ["Checks","that","custom","rotation","gate","is","used","."]
code: def test_rotation(self, rotation):
      """Checks that custom rotation gate is used."""
  
      weights = np.zeros(shape=(1, 2))
  
      op = qml.BasicEntanglerLayers(
          weights, wires=range(2), rotation=rotation
      )
      queue = op.expand().operations
  
      assert rotation in [type(gate) for gate in queue]
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 2 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_rotation(rotation) without return types