def METHOD_NAME(rule_runner: RuleRunner) -> None:
    rule_runner.write_files(
        {"some_file_name.py": PY_38_BAD_FILE, "BUILD": "python_sources(name='t')"}
    )
    tgt = rule_runner.get_target(
        Address("", target_name="t", relative_file_path="some_file_name.py")
    )
    fix_result = run_pyupgrade(
        rule_runner,
        [tgt],
        pyupgrade_arg="--py38-plus",
    )
    assert fix_result.output == rule_runner.make_snapshot(
        {"some_file_name.py": PY_38_FIXED_BAD_FILE}
    )
    assert fix_result.did_change is True