def METHOD_NAME(
        name: str, styleobject: Optional[QObject] = None
) -> QIcon:
    """
    Load a styled svg icon from the `icons` resource directory.
    .. seealso:: StyledSvgIconEngine
    """
    try:
        c = pkgutil.get_data(__name__, f"icons/{name}")
    except Exception:
        return QIcon()
    return QIcon(StyledSvgIconEngine(c, styleObject=styleobject))