def generate_group_id(namespace):
    """Generates the ID for a resource group wrapper resource around the
    resource with the given namespace.

    :type namespace: str
    :rtype: str
    """
    return namespace.rsplit('-', 1)[0]
