def get_resource_type(cls, permission_type):
        """
        Retrieve resource type from the provided permission type.

        :rtype: ``str``
        """
        # Special case for:
        # * PACK_VIEWS_INDEX_HEALTH
        # * EXECUTION_VIEWS_FILTERS_LIST
        if permission_type == PermissionType.PACK_VIEWS_INDEX_HEALTH:
            return ResourceType.PACK
        elif permission_type == PermissionType.EXECUTION_VIEWS_FILTERS_LIST:
            return ResourceType.EXECUTION

        split = permission_type.split("_")
        if len(split) < 2:
            raise ValueError(
                f"The permission_type {permission_type} doesn't have an underscore."
            )

        return "_".join(split[:-1])

        Retrieve resource type from the provided permission type.

        :rtype: ``str``
        
st2common/st2common/rbac/types.py