def METHOD_NAME(self, configs, expected_id, output_type):
    locator = ComponentLocator()
    resolver = ReferenceResolver()
    # add items to resolver
    for k, v in configs.items():
        if ConfigComponent.is_instantiable(v):
            resolver.add_item(ConfigComponent(config=v, id=k, locator=locator))
        elif ConfigExpression.is_expression(v):
            resolver.add_item(ConfigExpression(config=v, id=k, globals={"monai": monai, "torch": torch}))
        else:
            resolver.add_item(ConfigItem(config=v, id=k))
    result = resolver.get_resolved_content(expected_id)  # the root id is `expected_id` here
    self.assertTrue(isinstance(result, output_type))
    # test lazy instantiation
    item = resolver.get_item(expected_id, resolve=True)
    config = item.get_config()
    config["_disabled_"] = False
    item.update_config(config=config)
    if isinstance(item, ConfigComponent):
        result = item.instantiate()
    else:
        result = item.get_config()
    self.assertTrue(isinstance(result, output_type))