code: def test_fail_when_cycle_created(self):
      network = layers.join(
          layers.Input(10),
          layers.Relu(10),
      )
  
      error_message = (
          "Cannot define connection between layers, "
          "because it creates cycle in the graph"
      )
      with self.assertRaisesRegexp(LayerConnectionError, error_message):
          layers.join(network, network)
  
      extra_relu = layers.Relu(5)
      network = layers.join(network, extra_relu)
  
      with self.assertRaisesRegexp(LayerConnectionError, error_message):
          layers.join(network, extra_relu)
  
imports: import numpy
  from neupy import layers
  from neupy.utils import asfloat
  from neupy.exceptions import LayerConnectionError
  from base import BaseTestCase
label_desc: Use image node_id 5 for calling the DefinitionsTestCase obj's underlying member method code with example usage: obj.test_fail_when_cycle_created() without return types