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 output_dim is correctly processed, i.e., that an iterable is mapped to
  its first element while an int is left unchanged.
docstr_tok: ["Test","if","the","output_dim","is","correctly","processed",",","i.e.",",","that","an","iterable","is","mapped","to","its","first","element","while","an","int","is","left","unchanged","."]
code: def test_output_dim(
      self, get_circuit, output_dim
  ):  # pylint: disable=no-self-use
      """Test if the output_dim is correctly processed, i.e., that an iterable is mapped to
      its first element while an int is left unchanged."""
      c, w = get_circuit
      layer = KerasLayer(c, w, output_dim[0])
      assert layer.output_dim == output_dim[1]
  
imports: from collections import defaultdict
  import numpy
  import pytest
  import pennylane
label_desc: Use image node_id 7 for calling the TestKerasLayer obj's underlying member method code with example usage: obj.test_output_dim(get_circuit, output_dim) without return types