def METHOD_NAME(self, test_input, output_type):
    locator = ComponentLocator(excludes=["metrics"])
    configer = ConfigComponent(id="test", config=test_input, locator=locator)
    ret = configer.instantiate()
    if test_input.get("_disabled_", False):
        # test `_disabled_` works fine
        self.assertEqual(ret, None)
        return
    self.assertTrue(isinstance(ret, output_type))
    if isinstance(ret, LoadImaged):
        self.assertEqual(ret.keys[0], "image")