def METHOD_NAME(channel, enrolled_device):
    return (
        (
            channel == Channel.DEVICE
            or enrolled_device.platform == Platform.MACOS
        ) and (
            not enrolled_device.user_enrollment
            or enrolled_device.platform == Platform.IOS
        )
    )