human
Complete this python program:
def get_all_languages():
assistant
#Here is the Python code you requested.

    """Returns all language codes ar, ch etc
    """
    def _get():
        if (not frappe.db):
            frappe.connect()
        return frappe.db.sql_list(u'select    name    from    tabLanguage')
    return frappe.cache().get_value(u'languages', _get)