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 a ValueError is raised when instantiated with a weight missing from the
  weight_shapes dictionary
docstr_tok: ["Test","if","a","ValueError","is","raised","when","instantiated","with","a","weight","missing","from","the","weight_shapes","dictionary"]
code: def test_weight_shape_unspecified(
      self, get_circuit, output_dim
  ):  # pylint: disable=no-self-use
      """Test if a ValueError is raised when instantiated with a weight missing from the
      weight_shapes dictionary"""
      c, w = get_circuit
      del w["w1"]
      with pytest.raises(
          ValueError,
          match="Must specify a shape for every non-input parameter",
      ):
          KerasLayer(c, w, output_dim)
  
imports: from collections import defaultdict
  import numpy
  import pytest
  import pennylane
label_desc: Use image node_id 4 for calling the TestKerasLayer obj's underlying member method code with example usage: obj.test_weight_shape_unspecified(get_circuit, output_dim) without return types