def METHOD_NAME(
    normal: str,
    disabled: Optional[str] = None,
    active: Optional[str] = None,
    selected: Optional[str] = None,
    normal_off: Optional[str] = None,
    disabled_off: Optional[str] = None,
    active_off: Optional[str] = None,
    selected_off: Optional[str] = None,
) -> QIcon:
    """
    Add the contents of Scalable Vector Graphics (SVG) files provided for associated icon modes and
    states, see https://doc.qt.io/qt-5/qicon.html#Mode-enum. If the widget containing this icon is
    set to checkable, then the *_off states will be displayed.
    Parameters
    ----------
    normal: str
        The name of the SVG file to add to the icon for QIcon.Normal mode.
    disabled: str or None, optional
        The name of the SVG file to add to the icon for QIcon.Disabled mode.
    active: str, optional
        The name of the SVG file to add to the icon for QIcon.Active mode.
    selected: str, optional
        The name of the SVG file to add to the icon for QIcon.Selected mode.
    normal_off: str
        The name of the SVG file to add to the icon for QIcon.Normal mode.
    disabled_off: str or None, optional
        The name of the SVG file to add to the icon for QIcon.Disabled mode.
    active_off: str, optional
        The name of the SVG file to add to the icon for QIcon.Active mode.
    selected_off: str, optional
        The name of the SVG file to add to the icon for QIcon.Selected mode.
    Returns
    -------
    QIcon
        The icon that displays the contents of the SVG files.
    """
    icon = QIcon()
    icon.addFile(path(normal), mode=QIcon.Normal, state=QIcon.On)
    if disabled:
        icon.addFile(path(disabled), mode=QIcon.Disabled, state=QIcon.On)
    if active:
        icon.addFile(path(active), mode=QIcon.Active, state=QIcon.On)
    if selected:
        icon.addFile(path(selected), mode=QIcon.Selected, state=QIcon.On)
    if normal_off:
        icon.addFile(path(normal_off), mode=QIcon.Normal, state=QIcon.Off)
    if disabled_off:
        icon.addFile(path(disabled_off), mode=QIcon.Disabled, state=QIcon.Off)
    if active_off:
        icon.addFile(path(active_off), mode=QIcon.Active, state=QIcon.Off)
    if selected_off:
        icon.addFile(path(selected_off), mode=QIcon.Selected, state=QIcon.Off)
    return icon