code: def test_nested_vgg(self):
      print("-" * 20, "test nested vgg", "-" * 20)
      nested_vgg = Nested_VGG()
      print([l.name for l in nested_vgg.all_layers])
      nested_vgg.save_weights("nested_vgg.h5")
  
      # modify vgg1 weight val
      tar_weight1 = nested_vgg.vgg1.layers[0].all_weights[0]
      print(tar_weight1.name)
      ori_val1 = tar_weight1.numpy()
      modify_val1 = np.zeros_like(ori_val1)
      tar_weight1.assign(modify_val1)
      # modify vgg2 weight val
      tar_weight2 = nested_vgg.vgg2.layers[1].all_weights[0]
      print(tar_weight2.name)
      ori_val2 = tar_weight2.numpy()
      modify_val2 = np.zeros_like(ori_val2)
      tar_weight2.assign(modify_val2)
  
      nested_vgg.load_weights("nested_vgg.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 6 for calling the Model_Save_Test obj's underlying member method code with example usage: obj.test_nested_vgg() without return types