def METHOD_NAME(template: Dict) -> bool:
    """
    Check if language extensions are set in the template's Transform
    :param template: template to check
    :return: True if language extensions are set in the template, False otherwise
    """
    transform = template.get("Transform")
    if transform:
        if isinstance(transform, str) and transform.startswith("AWS::LanguageExtensions"):
            return True
        if isinstance(transform, list):
            for transform_instance in transform:
                if not isinstance(transform_instance, str):
                    continue
                if transform_instance.startswith("AWS::LanguageExtensions"):
                    return True
    return False