def METHOD_NAME(namespace, group_filter):
    client = _graph_client_factory(namespace.cmd.cli_ctx)
    result = list(client.group_list(filter=group_filter))
    return len(result), result[0]['id'] if len(result) == 1 else None