def get_cfgx_groupxs(testres):
    "\n        Returns the group indices of configurations specified to be joined.\n\n        Ignore:\n            a = [\n            'default:minqual=good,require_timestamp=True,view=left,crossval_enc=True,joinme=1',\n            'default:minqual=good,require_timestamp=True,view=right,crossval_enc=True,joinme=1',\n            'default:minqual=ok,require_timestamp=True,view=left,crossval_enc=True,joinme=2',\n            'default:minqual=ok,require_timestamp=True,view=right,crossval_enc=True,joinme=2',\n            ]\n            >>> a = [\n            >>>     'default:minqual=good,require_timestamp=True,view=left,crossval_enc=True,joinme=1',\n            >>>     'default:minqual=good,require_timestamp=True,view=right,crossval_enc=True,joinme=1',\n            >>>     'default:minqual=ok,require_timestamp=True,view=left,crossval_enc=True,joinme=2',\n            >>>     'default:minqual=ok,require_timestamp=True,view=right,crossval_enc=True,joinme=2',\n            >>> ]\n            >>> from wbia.init import main_helpers\n            >>> #a = 'default:minqual=good,require_timestamp=True,crossval_enc=True,view=[right,left]'\n            >>> t = 'default:K=[1]'\n            >>> ibs, testres = main_helpers.testdata_expts('WWF_Lynx_Copy', a=a, t=t)\n            >>> testres.get_cfgx_groupxs()\n\n            ut.lmap(sum, ut.apply_grouping([len(ut.unique(ibs.annots(aids).nids)) for aids in testres.cfgx2_qaids], testres.get_cfgx_groupxs()))\n            ut.lmap(sum, ut.apply_grouping([len(ut.unique(ibs.annots(aids))) for aids in testres.cfgx2_qaids], testres.get_cfgx_groupxs()))\n\n        Example:\n            >>> # xdoctest: +REQUIRES(--slow)\n            >>> # ENABLE_DOCTEST\n            >>> from wbia.expt.test_result import *  # NOQA\n            >>> from wbia.init import main_helpers\n            >>> ibs, testres = main_helpers.testdata_expts(\n            >>>    'PZ_MTEST',\n            >>>     a=['default:qnum_names=1,qname_offset=[0,1],joinme=1,dpername=1',\n            >>>        'default:qsize=1,dpername=[1,2]'],\n            >>>     t=['default:K=[1,2]'])\n            >>> groupxs = testres.get_cfgx_groupxs()\n            >>> result = groupxs\n            >>> print(result)\n            [[6], [4], [0, 2], [7], [5], [1, 3]]\n        "
    acfg_joinid = [acfg['qcfg']['joinme'] for acfg in testres.cfgx2_acfg]
    gen_groupid = it.count((- 1), step=(- 1))
    acfg_groupids = [(next(gen_groupid) if (grpid is None) else grpid) for grpid in acfg_joinid]
    pcfg_groupids = ut.get_varied_cfg_lbls(testres.cfgx2_pcfg)
    cfg_groupids = list(zip(pcfg_groupids, acfg_groupids))
    groupxs = ut.group_indices(cfg_groupids)[1]
    return groupxs
Returns the group indices of configurations specified to be joined.

Ignore:
    a = [
    'default:minqual=good,require_timestamp=True,view=left,crossval_enc=True,joinme=1',
    'default:minqual=good,require_timestamp=True,view=right,crossval_enc=True,joinme=1',
    'default:minqual=ok,require_timestamp=True,view=left,crossval_enc=True,joinme=2',
    'default:minqual=ok,require_timestamp=True,view=right,crossval_enc=True,joinme=2',
    ]
    >>> a = [
    >>>     'default:minqual=good,require_timestamp=True,view=left,crossval_enc=True,joinme=1',
    >>>     'default:minqual=good,require_timestamp=True,view=right,crossval_enc=True,joinme=1',
    >>>     'default:minqual=ok,require_timestamp=True,view=left,crossval_enc=True,joinme=2',
    >>>     'default:minqual=ok,require_timestamp=True,view=right,crossval_enc=True,joinme=2',
    >>> ]
    >>> from wbia.init import main_helpers
    >>> #a = 'default:minqual=good,require_timestamp=True,crossval_enc=True,view=[right,left]'
    >>> t = 'default:K=[1]'
    >>> ibs, testres = main_helpers.testdata_expts('WWF_Lynx_Copy', a=a, t=t)
    >>> testres.get_cfgx_groupxs()

    ut.lmap(sum, ut.apply_grouping([len(ut.unique(ibs.annots(aids).nids)) for aids in testres.cfgx2_qaids], testres.get_cfgx_groupxs()))
    ut.lmap(sum, ut.apply_grouping([len(ut.unique(ibs.annots(aids))) for aids in testres.cfgx2_qaids], testres.get_cfgx_groupxs()))

Example:
    >>> # xdoctest: +REQUIRES(--slow)
    >>> # ENABLE_DOCTEST
    >>> from wbia.expt.test_result import *  # NOQA
    >>> from wbia.init import main_helpers
    >>> ibs, testres = main_helpers.testdata_expts(
    >>>    'PZ_MTEST',
    >>>     a=['default:qnum_names=1,qname_offset=[0,1],joinme=1,dpername=1',
    >>>        'default:qsize=1,dpername=[1,2]'],
    >>>     t=['default:K=[1,2]'])
    >>> groupxs = testres.get_cfgx_groupxs()
    >>> result = groupxs
    >>> print(result)
    [[6], [4], [0, 2], [7], [5], [1, 3]]
def get_cfgx_groupxs(testres):
    "\n        Returns the group indices of configurations specified to be joined.\n\n        Ignore:\n            a = [\n            'default:minqual=good,require_timestamp=True,view=left,crossval_enc=True,joinme=1',\n            'default:minqual=good,require_timestamp=True,view=right,crossval_enc=True,joinme=1',\n            'default:minqual=ok,require_timestamp=True,view=left,crossval_enc=True,joinme=2',\n            'default:minqual=ok,require_timestamp=True,view=right,crossval_enc=True,joinme=2',\n            ]\n            >>> a = [\n            >>>     'default:minqual=good,require_timestamp=True,view=left,crossval_enc=True,joinme=1',\n            >>>     'default:minqual=good,require_timestamp=True,view=right,crossval_enc=True,joinme=1',\n            >>>     'default:minqual=ok,require_timestamp=True,view=left,crossval_enc=True,joinme=2',\n            >>>     'default:minqual=ok,require_timestamp=True,view=right,crossval_enc=True,joinme=2',\n            >>> ]\n            >>> from wbia.init import main_helpers\n            >>> #a = 'default:minqual=good,require_timestamp=True,crossval_enc=True,view=[right,left]'\n            >>> t = 'default:K=[1]'\n            >>> ibs, testres = main_helpers.testdata_expts('WWF_Lynx_Copy', a=a, t=t)\n            >>> testres.get_cfgx_groupxs()\n\n            ut.lmap(sum, ut.apply_grouping([len(ut.unique(ibs.annots(aids).nids)) for aids in testres.cfgx2_qaids], testres.get_cfgx_groupxs()))\n            ut.lmap(sum, ut.apply_grouping([len(ut.unique(ibs.annots(aids))) for aids in testres.cfgx2_qaids], testres.get_cfgx_groupxs()))\n\n        Example:\n            >>> # xdoctest: +REQUIRES(--slow)\n            >>> # ENABLE_DOCTEST\n            >>> from wbia.expt.test_result import *  # NOQA\n            >>> from wbia.init import main_helpers\n            >>> ibs, testres = main_helpers.testdata_expts(\n            >>>    'PZ_MTEST',\n            >>>     a=['default:qnum_names=1,qname_offset=[0,1],joinme=1,dpername=1',\n            >>>        'default:qsize=1,dpername=[1,2]'],\n            >>>     t=['default:K=[1,2]'])\n            >>> groupxs = testres.get_cfgx_groupxs()\n            >>> result = groupxs\n            >>> print(result)\n            [[6], [4], [0, 2], [7], [5], [1, 3]]\n        "
    acfg_joinid = [acfg['qcfg']['joinme'] for acfg in testres.cfgx2_acfg]
    gen_groupid = it.count((- 1), step=(- 1))
    acfg_groupids = [(next(gen_groupid) if (grpid is None) else grpid) for grpid in acfg_joinid]
    pcfg_groupids = ut.get_varied_cfg_lbls(testres.cfgx2_pcfg)
    cfg_groupids = list(zip(pcfg_groupids, acfg_groupids))
    groupxs = ut.group_indices(cfg_groupids)[1]
    return groupxs