code: def test_double_nested_vgg(self):
      print("-" * 20, "test_double_nested_vgg", "-" * 20)
  
      class mymodel(Model):
          def __init__(self):
              super(mymodel, self).__init__()
              self.inner = Nested_VGG()
              self.list = LayerList(
                  [
                      tl.layers.Dense(
                          n_units=4, in_channels=10, name="dense1"
                      ),
                      tl.layers.Dense(
                          n_units=3, in_channels=4, name="dense2"
                      ),
                  ]
              )
  
          def forward(self, *inputs, **kwargs):
              pass
  
      net = mymodel()
      net.save_weights("double_nested.h5")
      print([x.name for x in net.all_layers])
  
      # modify vgg1 weight val
      tar_weight1 = net.inner.vgg1.layers[0].all_weights[0]
      ori_val1 = tar_weight1.numpy()
      modify_val1 = np.zeros_like(ori_val1)
      tar_weight1.assign(modify_val1)
      # modify vgg2 weight val
      tar_weight2 = net.inner.vgg2.layers[1].all_weights[0]
      ori_val2 = tar_weight2.numpy()
      modify_val2 = np.zeros_like(ori_val2)
      tar_weight2.assign(modify_val2)
  
      net.load_weights("double_nested.h5")
      self.assertLess(
          np.max(np.abs(ori_val1 - tar_weight1.numpy())), 1e-7
      )
      self.assertLess(
          np.max(np.abs(ori_val2 - tar_weight2.numpy())), 1e-7
      )
  
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 Model_Save_Test obj's underlying member method code with example usage: obj.test_double_nested_vgg() without return types