code: def layer_vars(self, NonlinearityLayer, dummy_input_layer):
      nonlinearity = Mock()
  
      layer = NonlinearityLayer(
          dummy_input_layer,
          nonlinearity=nonlinearity,
      )
  
      return {
          "nonlinearity": nonlinearity,
          "layer": layer,
      }
  
imports: from mock import Mock
  import numpy
  import pytest
  import theano
  from lasagne.layers import InputLayer, standardize, get_output, get_all_params
  from lasagne.utils import floatX
label_desc: Use image node_id 2 for calling the TestNonlinearityLayer obj's underlying member method code with example usage: obj.layer_vars(NonlinearityLayer, dummy_input_layer) and returns: dict