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