def METHOD_NAME(tmpdir: Path):
    credentials_path = str(tmpdir / "credentials.yml")
    rasa.shared.utils.io.write_yaml({}, credentials_path)
    tmp_credentials = x._prepare_credentials_for_rasa_x(
        credentials_path, "http://localhost:5002"
    )
    actual = rasa.shared.utils.io.read_config_file(tmp_credentials)
    assert actual["rasa"]["url"] == "http://localhost:5002"