class_docstr: Test methods and attributes.
class_docstr_tok: ["Test","methods","and","attributes","."]
docstr: Test that the shape method returns the correct shapes for
  the weight tensors
docstr_tok: ["Test","that","the","shape","method","returns","the","correct","shapes","for","the","weight","tensors"]
code: def test_shapes(self, n_layers, n_wires, tol):
      """Test that the shape method returns the correct shapes for
      the weight tensors"""
  
      shapes = qml.CVNeuralNetLayers.shape(n_layers, n_wires)
      expected = expected_shapes(n_layers, n_wires)
  
      assert np.allclose(shapes, expected, atol=tol, rtol=0)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
  from pennylane.devices import DefaultGaussian
label_desc: Use image node_id 1 for calling the TestAttributes obj's underlying member method code with example usage: obj.test_shapes(n_layers, n_wires, tol) without return types