def METHOD_NAME(text, delim='_'):
    """
    Slugify given unicode text.
    Parameters
    ----------
    text : `str`
        A `str` to slugify.
    delim : `str`, optional
        The delimiter for the input ``text``. Default is "_".
    Returns
    -------
    `str` :
        The slugify `str` name.
    """
    text = normalize('NFKD', text)
    period = '.'
    name_and_extension = text.rsplit(period, 1)
    name = name_and_extension[0]
    name = str(delim).join(
        filter(None, (word for word in _punct_re.split(name.lower()))))
    if len(name_and_extension) == 2:
        extension = name_and_extension[1]
        return str(period).join([name, extension])
    else:
        return name