code: def test_different_input_types(self):
      input_layer = layers.Input(10, name="input")
      network = layers.join(
          input_layer,
          layers.Sigmoid(5),
          layers.Sigmoid(4),
      )
  
      x_matrix = asfloat(np.random.random((3, 10)))
      out1 = self.eval(network.output(x_matrix))
      self.assertEqual((3, 4), out1.shape)
  
      out2 = self.eval(network.output({input_layer: x_matrix}))
      np.testing.assert_array_almost_equal(out1, out2)
  
      out3 = self.eval(network.output({"input": x_matrix}))
      np.testing.assert_array_almost_equal(out2, out3)
  
      unknown_layer = layers.Input(5, name="unk")
      message = "The `unk` layer doesn't appear in the network"
      with self.assertRaisesRegexp(ValueError, message):
          network.output({unknown_layer: x_matrix})
  
file_path: neupy/tests/layers/graph/test_usage.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 UsageTestCase obj's underlying member method code with example usage: obj.test_different_input_types() without return types