def METHOD_NAME(parser):
    # type: (ArgumentParser) -> None
    resolver_options.register(parser)
    with pytest.raises(resolver_options.InvalidConfigurationError):
        compute_pip_configuration(
            parser, args=["--pip-version", "23.2", "--resolver-version", "pip-legacy-resolver"]
        )