code: def test_network_initializations(self):
      possible_networks = (
          # as a list
          [layers.Input(2), layers.Sigmoid(3), layers.Tanh(1)],
          # as forward sequence with inline operators
          layers.Input(2) > layers.Relu(10) > layers.Tanh(1),
          layers.Input(2) >> layers.Relu(10) >> layers.Tanh(1),
      )
  
      for i, network in enumerate(possible_networks, start=1):
          optimizer = algorithms.GradientDescent(network)
          message = "[Test #{}] Network: {}".format(i, network)
          self.assertEqual(
              len(optimizer.network.layers), 3, msg=message
          )
  
file_path: neupy/tests/algorithms/gd/test_gd.py
imports: import pickle
  import numpy
  import tensorflow
  from neupy import algorithms, layers
  from neupy.algorithms.gd import objectives
  from neupy.exceptions import InvalidConnection
  from base import BaseTestCase
  from helpers import simple_classification
label_desc: Use image node_id 3 for calling the GradientDescentTestCase obj's underlying member method code with example usage: obj.test_network_initializations() without return types