code: def test_output_nonlin(self, module_cls):
      module = module_cls(output_nonlin=nn.Sigmoid())
  
      # 2 linear, 1 relu, 1 dropout, 1 sigmoid
      assert len(module.sequential) == 5
      assert isinstance(module.sequential[0], nn.Linear)
      assert isinstance(module.sequential[1], nn.ReLU)
      assert isinstance(module.sequential[2], nn.Dropout)
      assert isinstance(module.sequential[3], nn.Linear)
      assert isinstance(module.sequential[4], nn.Sigmoid)
  
file_path: skorch/skorch/tests/test_toy.py
imports: import numpy
  import pytest
  import torch
  from torch import nn
label_desc: Use image node_id 5 for calling the TestMLPModule obj's underlying member method code with example usage: obj.test_output_nonlin(module_cls) without return types