code: def test_pretrained(self):
      kwargs = {
          "n_fg_class": self.n_fg_class,
          "anchor_scales": self.anchor_scales,
          "pretrained_model": self.pretrained_model,
      }
  
      if self.pretrained_model.startswith("sbd"):
          valid = self.n_fg_class in [None, 20]
          valid = valid and self.anchor_scales == (8, 16, 32)
      elif self.pretrained_model.startswith("coco"):
          valid = self.n_fg_class in [None, 80]
          valid = valid and self.anchor_scales == (4, 8, 16, 32)
  
      if valid:
          FCISResNet101(**kwargs)
      else:
          with self.assertRaises(ValueError):
              FCISResNet101(**kwargs)
  
imports: import numpy
  import unittest
  import chainer
  from chainer.backends import cuda
  from chainer import testing
  from chainer.testing import attr
  from chainercv.experimental.links import FCISResNet101
  from chainercv.experimental.links.model.fcis import FCISTrainChain
  from chainercv.utils import mask_to_bbox
  from tests.experimental_tests.links_tests.model_tests.fcis_tests.test_fcis import _random_array
label_desc: Use image node_id 1 for calling the TestFCISResNet101Pretrained obj's underlying member method code with example usage: obj.test_pretrained() without return types