code: def test_layerlist(self):
      innet = Input(self.inputs_shape)
      hlayer = LayerList(
          [
              ModelLayer(self.model),
              LayerList([Dense(n_units=100), Dense(n_units=10)]),
              Dense(n_units=5),
              Dense(n_units=4),
          ]
      )(innet)
      model = Model(inputs=innet, outputs=hlayer)
  
      # for w in model.all_weights:
      #     print(w.name)
  
      data = np.random.normal(
          size=[self.batch_size, self.inputs_shape[1]]
      ).astype(np.float32)
      pred = model(data, is_train=False)
      self.assertEqual(pred.get_shape().as_list(), [self.batch_size, 4])
  
      print(model)
  
      model.release_memory()
  
file_path: TensorLayer/tests/layers/test_layers_core_basedense_dropout.py
imports: import os
  import unittest
  import numpy
  import tensorflow
  import tensorlayer
  from tensorlayer.layers import *
  from tensorlayer.models import *
  from tests.utils import CustomTestCase
label_desc: Use image node_id 7 for calling the Layer_Core_Test obj's underlying member method code with example usage: obj.test_layerlist() without return types