def METHOD_NAME(tmpdir: Path):
    credentials_path = str(tmpdir / "credentials.yml")
    credentials = {
        "rasa": {"url": "my-custom-url"},
        "another-channel": {"url": "some-url"},
    }
    rasa.shared.utils.io.write_yaml(credentials, credentials_path)
    x._prepare_credentials_for_rasa_x(credentials_path)
    actual = rasa.shared.utils.io.read_config_file(credentials_path)
    assert actual == credentials