code: def test_cut_using_layer_object(self):
      relu = layers.Relu(2)
      network = layers.Input(10) >> relu >> layers.Sigmoid(1)
  
      self.assertShapesEqual(network.input_shape, (None, 10))
      self.assertShapesEqual(network.output_shape, (None, 1))
      self.assertEqual(len(network), 3)
  
      cutted_network = network.end(relu)
      self.assertShapesEqual(cutted_network.input_shape, (None, 10))
      self.assertShapesEqual(cutted_network.output_shape, (None, 2))
      self.assertEqual(len(cutted_network), 2)
  
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 4 for calling the SliceLayerConnectionsTestCase obj's underlying member method code with example usage: obj.test_cut_using_layer_object() without return types