code: def test_reuse_vgg(self):
      # prepare data
      (
          X_train,
          y_train,
          X_val,
          y_val,
          X_test,
          y_test,
      ) = tl.files.load_mnist_dataset(shape=(-1, 784))
  
      # for fashion_MNIST dataset test
      # X_train, y_train, X_val, y_val, X_test, y_test = tl.files.load_fashion_mnist_dataset(shape=(-1, 784))
  
      with self.assertNotRaises(Exception):
          with tf.Session() as sess:
              # initialize all variables in the session
              tl.layers.initialize_global_variables(sess)
  
              # print network information
              self.network.print_params()
              self.network.print_layers()
  
              # train the network
              tl.utils.fit(
                  sess,
                  self.network,
                  self.train_op,
                  self.cost,
                  X_train,
                  y_train,
                  self.x,
                  self.y_,
                  acc=self.acc,
                  batch_size=500,
                  n_epoch=1,
                  print_freq=1,
                  X_val=X_val,
                  y_val=y_val,
                  eval_train=False,
              )
  
              # evaluation
              tl.utils.test(
                  sess,
                  self.network,
                  self.acc,
                  X_test,
                  y_test,
                  self.x,
                  self.y_,
                  batch_size=None,
                  cost=self.cost,
              )
  
              # save the network to .npz file
              tl.files.save_npz(
                  self.network.all_params, name="model.npz"
              )
              sess.close()
  
file_path: TensorLayer/tests/pending/test_mnist_simple.py
imports: import os
  import unittest
  import tensorflow
  import tensorlayer
  from tests.utils import CustomTestCase
label_desc: Use image node_id 3 for calling the Simple_MNIST_Test obj's underlying member method code with example usage: obj.test_reuse_vgg() without return types