class_docstr: Unit tests for the pennylane.qnn.keras.KerasLayer class.
class_docstr_tok: ["Unit","tests","for","the","pennylane.qnn.keras.KerasLayer","class","."]
docstr: Test if the weight_shapes input argument is correctly processed to be a dictionary
  with values that are tuples.
docstr_tok: ["Test","if","the","weight_shapes","input","argument","is","correctly","processed","to","be","a","dictionary","with","values","that","are","tuples","."]
code: def test_weight_shapes(
      self, get_circuit, output_dim, n_qubits
  ):  # pylint: disable=no-self-use
      """Test if the weight_shapes input argument is correctly processed to be a dictionary
      with values that are tuples."""
      c, w = get_circuit
      layer = KerasLayer(c, w, output_dim)
      assert layer.weight_shapes == {
          "w1": (3, n_qubits, 3),
          "w2": (1,),
          "w3": (),
          "w4": (3,),
          "w5": (2, n_qubits, 3),
          "w6": (3,),
          "w7": (),
      }
  
imports: from collections import defaultdict
  import numpy
  import pytest
  import pennylane
label_desc: Use image node_id 8 for calling the TestKerasLayer obj's underlying member method code with example usage: obj.test_weight_shapes(get_circuit, output_dim, n_qubits) without return types