code: def test_net2(self):
      # test weights
      self.assertEqual(self.innet._info[0].layer.all_weights, [])
      self.assertEqual(self.dropout1._info[0].layer.all_weights, [])
      self.assertEqual(
          self.dense1._info[0]
          .layer.all_weights[0]
          .get_shape()
          .as_list(),
          [784, 800],
      )
      self.assertEqual(
          self.dense1._info[0]
          .layer.all_weights[1]
          .get_shape()
          .as_list(),
          [
              800,
          ],
      )
      self.assertEqual(
          self.dense2._info[0]
          .layer.all_weights[0]
          .get_shape()
          .as_list(),
          [800, 10],
      )
      self.assertEqual(len(self.dense1._info[0].layer.all_weights), 2)
      self.assertEqual(len(self.dense2._info[0].layer.all_weights), 1)
  
      self.assertEqual(len(self.model.all_weights), 3)
  
      # a special case
      self.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 4 for calling the Layer_Core_Test obj's underlying member method code with example usage: obj.test_net2() without return types