def METHOD_NAME(
    rule_runner: PythonRuleRunner, directory: str, *, dependencies: Optional[List[str]] = None
) -> None:
    rule_runner.write_files(
        {
            f"{directory}/BUILD": f"python_sources(name='target', dependencies={dependencies or []})",
            f"{directory}/a.py": "",
        }
    )