import unicodedata


def normalize(form, text):
    """Return the normal form form for the Unicode string unistr.

    Valid values for form are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
    """
    return unicodedata.normalize(form, text)