code: def test_ambigous_layer_names_search(self):
      network = layers.join(
          layers.Input(10, name="input"),
          layers.Relu(8, name="relu"),
          layers.Relu(5, name="relu"),
      )
  
      message = (
          "Ambiguous layer name `relu`. Network "
          "has 2 layers with the same name"
      )
      with self.assertRaisesRegexp(NameError, message):
          network.layer("relu")
  
file_path: neupy/tests/layers/graph/test_slicing.py
imports: import numpy
  from neupy import layers
  from neupy.utils import asfloat
  from base import BaseTestCase
label_desc: Use image node_id 11 for calling the SliceLayerConnectionsTestCase obj's underlying member method code with example usage: obj.test_ambigous_layer_names_search() without return types