code: def test_connect_cutted_layers_to_other_layers(self):
      network = layers.join(
          layers.Input(10, name="input-1"),
          layers.Relu(8, name="relu-0"),
          layers.Relu(5, name="relu-1"),
          layers.Relu(2, name="relu-2"),
          layers.Relu(1, name="relu-3"),
      )
  
      self.assertShapesEqual(network.input_shape, (None, 10))
      self.assertShapesEqual(network.output_shape, (None, 1))
      self.assertEqual(len(network), 5)
  
      cutted_network = network.start("relu-1").end("relu-2")
      self.assertEqual(cutted_network.input_shape, None)
      self.assertShapesEqual(cutted_network.output_shape, (None, 2))
      self.assertEqual(len(cutted_network), 2)
      self.assertDictEqual(
          cutted_network.forward_graph,
          {
              network.layer("relu-1"): [network.layer("relu-2")],
              network.layer("relu-2"): [],
          },
      )
  
      new_network = layers.join(
          layers.Input(8),
          cutted_network,
          layers.Sigmoid(11),
      )
      self.assertShapesEqual(new_network.input_shape, (None, 8))
      self.assertShapesEqual(new_network.output_shape, (None, 11))
      self.assertEqual(len(new_network), 4)
  
      x_test = asfloat(np.ones((7, 10)))
      y_predicted = self.eval(network.output(x_test))
      self.assertEqual(y_predicted.shape, (7, 1))
  
      x_test = asfloat(np.ones((7, 8)))
      y_predicted = self.eval(new_network.output(x_test))
      self.assertEqual(y_predicted.shape, (7, 11))
  
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 9 for calling the SliceLayerConnectionsTestCase obj's underlying member method code with example usage: obj.test_connect_cutted_layers_to_other_layers() without return types