code: def test_pretrained(self):
      kwargs = {
          "n_class": self.n_class,
          "pretrained_model": self.pretrained_model,
          "mean": self.mean,
      }
  
      if self.pretrained_model == "imagenet":
          valid = self.n_class in {None, 1000}
  
      if valid:
          self.model(**kwargs)
      else:
          with self.assertRaises(ValueError):
              self.model(**kwargs)
  
file_path: chainercv/tests/links_tests/model_tests/senet_tests/test_se_resnet.py
imports: import unittest
  import numpy
  from chainer.testing import attr
  from chainer import Variable
  from chainercv.links import SEResNet101
  from chainercv.links import SEResNet152
  from chainercv.links import SEResNet50
  from chainercv.utils import testing
label_desc: Use image node_id 1 for calling the TestSEResNetPretrained obj's underlying member method code with example usage: obj.test_pretrained() without return types