code: def test_duplicate_names(self):
      dense1 = tl.layers.Dense(n_units=10, name="test_densehh")
      print(dense1)
      try:
          dense2 = tl.layers.Dense(n_units=10, name="test_densehh")
          print(dense2)
      except Exception as e:
          print(e)
      dense1 = tl.layers.Dense(n_units=10, name="test_densehh1")
      dense2 = tl.layers.Dense(n_units=10, name="test_densehh2")
      print(dense1)
      print(dense2)
  
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 8 for calling the Layer_Core_Test obj's underlying member method code with example usage: obj.test_duplicate_names() without return types