def METHOD_NAME():
    config = Mock()
    config.path.exist.return_value = True
    tree = TestMiddleNode(
        context=Mock(),
        config=config,
        children={"childA": build_tree(), "childB": build_tree()},
    )
    assert tree.check_errors(data={"wrongChild": {}}) == [
        "key=wrongChild not in ['childA', 'childB'] for TestMiddleNode"
    ]
    with pytest.raises(ValueError):
        tree.check_errors(data={"wrongChild": {}}, raising=True)
    assert tree.check_errors(data={"wrongChild": {}}, url=["childA"]) == [
        "key=wrongChild not in ['input', 'output'] for TestMiddleNode"
    ]
    assert tree.check_errors(data={"childA": {"input": 42, "output": 42}}) == []