def METHOD_NAME(api, targetgroup):
    '''
    test to create the targetgroups
    '''
    assert isinstance(targetgroup, dict)
    check(targetgroup, 'acls', list)
    for data in targetgroup['acls']:
        check(data, 'display_name', str, allow_none=True)
        check(data, 'id', int, allow_none=True)
        check(data, 'name', str, allow_none=True)
        check(data, 'owner', int, allow_none=True)
        check(data, 'permissions', int)
        check(data, 'type', str)
    check(targetgroup, 'creation_date', int)
    check(targetgroup, 'default_group', int)
    check(targetgroup, 'id', int)
    check(targetgroup, 'last_modification_date', int)
    check(targetgroup, 'members', str)
    check(targetgroup, 'name', str)
    check(targetgroup, 'owner', str)
    check(targetgroup, 'owner_id', int)
    check(targetgroup, 'shared', int)
    check(targetgroup, 'user_permissions', int)