def METHOD_NAME(rule_runner: PythonRuleRunner, major_minor_interpreter: str) -> None:
    assert (
        run_repl(
            rule_runner,
            ["src/python/lib.py"],
            global_args=[
                "--repl-shell=ipython",
                f"--python-interpreter-constraints=['=={major_minor_interpreter}.*']",
            ],
        ).exit_code
        == 0
    )