code: def test_flatten_layers_method(self):
      resource_path = os.path.join(
          os.path.split(__file__)[0], "../resources"
      )
      model_path = os.path.join(
          resource_path, "models/bigdl/bigdl_lenet.model"
      )
      model = Net.load_bigdl(model_path)
  
      assert len(Sequential().add(model).flattened_layers()) == 12
  
imports: import pytest
  import keras.layers
  from keras.models import Sequential
  from test.bigdl.test_zoo_utils import ZooTestCase
  import bigdl.dllib.keras.layers
  from bigdl.dllib.keras.models import Model
  from bigdl.dllib.keras.models import Sequential
  from bigdl.dllib.net import Net
  from bigdl.dllib.nn.layer import Linear, Sigmoid, SoftMax, Model
  from bigdl.dllib.utils.common import *
  from bigdl.dllib.nn.layer import Sequential
label_desc: Use image node_id 9 for calling the TestLayer obj's underlying member method code with example usage: obj.test_flatten_layers_method() without return types