def METHOD_NAME(self):
    true_num_classes = 3
    model = TorchVisionODAdapter(
        MockModel(num_classes=true_num_classes + 2),
        ignored_output_inds=[0, true_num_classes + 1])
    model.eval()
    N = 10
    x = torch.empty(N, 3, 100, 100)
    outs = model(x)
    for out in outs:
        self.assertIsInstance(out, BoxList)
        self.assertIn('class_ids', out)
        self.assertIn('scores', out)
        self.assertTrue(
            all((0 <= c < true_num_classes)
                for c in out.get_field('class_ids')))