code: def test_dropout(self):
      data_x = np.random.random([10, 784]).astype(np.float32)
      pred_y_1 = self.model(data_x, is_train=True)
      pred_y_2 = self.model(data_x, is_train=True)
      self.assertFalse(np.allclose(pred_y_1, pred_y_2))
      pred_y_1 = self.model(data_x, is_train=False)
      pred_y_2 = self.model(data_x, is_train=False)
      self.assertTrue(np.allclose(pred_y_1, pred_y_2))
  
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 9 for calling the Layer_Core_Test obj's underlying member method code with example usage: obj.test_dropout() without return types