def METHOD_NAME(platform):
    """Generates a Swift triple for a platform.
    Args:
        platform: A value returned from `platforms.collect`.
    """
    return "{arch}-apple-{triple_prefix}{triple_suffix}".format(
        arch = platform._arch,
        triple_prefix = _SWIFT_TRIPLE_PREFIX[platform._platform],
        triple_suffix = _TRIPLE_SUFFIX[platform._platform],
    )