def METHOD_NAME(dictionary):
    """Test that the methods for accessing the item raise the correct error.
    * ``node['inexistent']`` should raise ``KeyError``
    * ``node.dict.inexistent`` should raise ``AttributeError``
    """
    node = Dict(dictionary)
    with pytest.raises(KeyError):
        _ = node['inexistent_key']
    with pytest.raises(AttributeError):
        _ = node.dict.inexistent_key