<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def transliterate(table, text):
 """ Transliterate text according to one of the tables above. `table` chooses the table. It looks like a language code but comes from a very restricted set: - 'sr-Latn' means to convert Serbian, which may be in Cyrillic, into the Latin alphabet. - 'az-Latn' means the same for Azerbaijani Cyrillic to Latn. """

    if table == 'sr-Latn':
        return text.translate(SR_LATN_TABLE)
    elif table == 'az-Latn':
        return text.translate(AZ_LATN_TABLE)
    else:
        raise ValueError("Unknown transliteration table: {!r}".format(table))