def METHOD_NAME(
    rule_runner: RuleRunner,
    *,
    path_from: str,
    path_to: str,
    expected: List[List[str]] | None = None,
) -> None:
    args = []
    if path_from:
        args += [f"--paths-from={path_from}"]
    if path_to:
        args += [f"--paths-to={path_to}"]
    result = rule_runner.run_goal_rule(PathsGoal, args=[*args])
    if expected is not None:
        print(sorted(json.loads(result.stdout)))
        assert sorted(json.loads(result.stdout)) == sorted(expected)