code: def test_ModelLayer(self):
      print("-" * 20, "ModelLayer", "-" * 20)
  
      def MyModel():
          nii = Input(shape=[None, 100])
          nn = Dense(50, in_channels=100)(nii)
          nn = Dropout(0.9)(nn)
          nn = Dense(10)(nn)
          M = Model(inputs=nii, outputs=nn)
          return M
  
      mlayer = MyModel().as_layer()
  
      ni = Input(shape=[None, 100])
      nn = mlayer(ni)
      nn = Dense(5)(nn)
      net = Model(inputs=ni, outputs=nn)
  
      self.assertEqual(net._nodes_fixed, True)
  
      data = np.random.normal(size=[4, 100]).astype(np.float32)
      out = net(data, is_train=False)
  
      self.assertEqual(net._nodes_fixed, True)
      self.assertEqual(net.all_layers[1]._nodes_fixed, True)
      self.assertEqual(net.all_layers[1].model._nodes_fixed, True)
      self.assertEqual(
          net.all_layers[1].model.all_layers[0]._nodes_fixed, True
      )
  
file_path: TensorLayer/tests/layers/test_layernode.py
imports: import os
  import unittest
  import numpy
  import tensorflow
  from tensorflow.python.ops.rnn_cell import LSTMCell
  import tensorlayer
  from tensorlayer.layers import *
  from tensorlayer.models import Model
  from tests.utils import CustomTestCase
label_desc: Use image node_id 7 for calling the LayerNode_Test obj's underlying member method code with example usage: obj.test_ModelLayer() and returns: M