def METHOD_NAME(platform, platform_type):
    """Returns whether a platform is of a given type.
    Args:
        platform: A value returned from `platforms.collect`.
        platform_type: A value from `apple_common.platform`.
    """
    return platform._platform.platform_type == platform_type