def METHOD_NAME(name: str) -> str:
    """Sanitizes name to comply with IR naming convention.
    The sanitized name contains only lower case alphanumeric characters
    and dashes.
    """
    return re.sub('-+', '-', re.sub('[^-0-9a-z]+', '-',
                                    name.lower())).lstrip('-').rstrip('-')