def METHOD_NAME() -> RuleRunner:
    METHOD_NAME = RuleRunner(
        rules=[
            *python_target_types_rules(),
            *stevedore_dep_rules(),
            QueryRule(AllStevedoreExtensionTargets, ()),
            QueryRule(StevedoreExtensions, ()),
            QueryRule(StevedoreExtensionTargets, (StevedoreNamespacesProviderTargetsRequest,)),
            QueryRule(InferredDependencies, (InferStevedoreNamespacesDependencies,)),
        ],
        target_types=[
            PythonDistribution,
            PythonSourceTarget,
            PythonSourcesGeneratorTarget,
            PythonTestTarget,
            PythonTestsGeneratorTarget,
        ],
        objects={
            "python_artifact": PythonArtifact,
            "stevedore_namespace": StevedoreNamespace,
        },
    )
    write_test_files(METHOD_NAME)
    args = [
        "--source-root-patterns=runners/*_runner",
    ]
    METHOD_NAME.set_options(args, env_inherit={"PATH", "PYENV_ROOT", "HOME"})
    return METHOD_NAME