def METHOD_NAME():
    from robotframework_ls.impl.robot_version import robot_version_supports_language
    if not robot_version_supports_language():
        raise pytest.skip("Test requires language support.")
    from robotframework_ls.impl.robot_workspace import RobotDocument
    from robotframework_ls.impl import ast_utils
    source = """language: foo"""
    doc = RobotDocument("uri", source)
    ast = doc.get_ast()
    locinfo = ast_utils.get_localization_info_from_model(ast)
    assert not locinfo.language_codes
    source = """language: pt-br"""
    doc = RobotDocument("uri", source)
    ast = doc.get_ast()
    locinfo = ast_utils.get_localization_info_from_model(ast)
    assert locinfo.language_codes == ("pt-BR",)