code: def test_lenet_shape(self):
      from bigdl.dllib.models.lenet.lenet import build_model
  
      model = build_model(10)
      input_shape = model.get_input_shape()
      np.testing.assert_allclose((28, 28, 1), input_shape[1:])
      output_shape = model.get_output_shape()
      np.testing.assert_allclose((10,), output_shape[1:])
  
imports: import pytest
  from test.bigdl.test_utils import BigDLTestCase
  import bigdl.dllib.nn.keras.layers.layer
  import keras.layers
  import keras.backend
  from bigdl.dllib.keras.converter import WeightsConverter
  from bigdl.dllib.feature.dataset.dataset import *
  from bigdl.dllib.nn.keras.layers.topology import Model
  from bigdl.dllib.nn.keras.layers.topology import Sequential
  from keras.engine import merge, Model
  from keras.models import Sequential
label_desc: Use image node_id 10 for calling the TestKerasAPI obj's underlying member method code with example usage: obj.test_lenet_shape() without return types