def reformat_resource_groups_outputs(text: str) -> str:
    """rg_*text -> ResourceGroupText
    Args:
        text: the text to transform
    Returns:
        A Camel Cased string.
    """
    suffix = text[3:]
    if suffix == 'id':
        suffix = 'ID'
    elif suffix == 'resourcetypeid':
        suffix = 'TypeID'
    else:
        suffix = suffix.title()
    return f'ResourceGroup{suffix}'