def ensure_annotations_equal(name, expected, actual):
maybe_replace_any_if_equal(name, expected, actual)<EOL>
Raise ValueError if `expected` isn't equal to `actual`.

    If --replace-any is used, the Any type in `actual` is considered equal.