code: def test_init(self):
      # Function to test initialization of NeuralNetParams object.
      # Valid params
      net_weights = [[[2, 2], [3, 3], [4, 4]], [1, 1, 1]]
      net_biases = [
          np.transpose(np.matrix([0, 0, 0])),
          np.transpose(np.matrix([0, 0])),
      ]
      net_layer_types = ["ff_relu", "ff"]
      nn_params1 = nn.NeuralNetwork(
          net_weights, net_biases, net_layer_types
      )
  
      self.assertIsNotNone(nn_params1)
      # Invalid params : list length
      net_biases = [0]
      with self.assertRaises(ValueError):
          nn.NeuralNetwork(net_weights, net_biases, net_layer_types)
  
      # Invalid params: layer types
      with self.assertRaises(ValueError):
          net_layer_types = ["ff_relu", "ff_relu"]
          nn.NeuralNetwork(net_weights, net_biases, net_layer_types)
  
file_path: cleverhans/cleverhans_v3.1.0/cleverhans/experimental/certification/tests/nn_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import unittest
  import numpy
  import tensorflow
  from cleverhans.experimental.certification import nn
label_desc: Use image node_id 1 for calling the NeuralNetworkTest obj's underlying member method code with example usage: obj.test_init() without return types