code: def test_cut_output_layers_in_sequence(self):
      network = layers.join(
          layers.Input(10, name="input-1"),
          layers.Relu(5, name="relu-1"),
          layers.Relu(1, name="relu-2"),
      )
  
      self.assertShapesEqual(network.input_shape, (None, 10))
      self.assertShapesEqual(network.output_shape, (None, 1))
      self.assertEqual(len(network), 3)
  
      cutted_network = network.end("relu-1").end("input-1")
      self.assertShapesEqual(cutted_network.input_shape, (None, 10))
      self.assertShapesEqual(cutted_network.output_shape, (None, 10))
      self.assertEqual(len(cutted_network), 1)
  
      x_test = asfloat(np.ones((7, 10)))
      y_predicted = cutted_network.output(x_test)
      self.assertEqual(y_predicted.shape, (7, 10))
  
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 3 for calling the SliceLayerConnectionsTestCase obj's underlying member method code with example usage: obj.test_cut_output_layers_in_sequence() without return types