code: def test_recurrent_nparams_learn_init():
      l_inp = InputLayer((2, 2, 3))
      l_rec = RecurrentLayer(l_inp, 5, learn_init=True)
  
      # b, W_hid_to_hid and W_in_to_hid + hid_init
      assert (
          len(lasagne.layers.get_all_params(l_rec, trainable=True)) == 4
      )
  
      # b + hid_init
      assert (
          len(lasagne.layers.get_all_params(l_rec, regularizable=False))
          == 2
      )
  
imports: import pytest
  from lasagne.layers import RecurrentLayer, LSTMLayer, CustomRecurrentLayer
  from lasagne.layers import InputLayer, DenseLayer, GRULayer, Gate, Layer
  from lasagne.layers import helper
  import theano
  import theano.tensor
  import numpy
  import lasagne
  from mock import Mock
label_desc: Use image node_id 4 for calling a global function with example usage: test_recurrent_nparams_learn_init() without return types