def METHOD_NAME(self, node, expected):
    expected_annotation = expected.get('annotation', None)
    if expected_annotation is None:
        assert node.annotation is None
    else:
        assert node.annotation.value == expected_annotation