def print_unique_annot_config_stats(testres, ibs=None):
    "\n        Args:\n            ibs (IBEISController): wbia controller object(default = None)\n\n        CommandLine:\n            python -m wbia TestResult.print_unique_annot_config_stats\n\n        Example:\n            >>> # DISABLE_DOCTEST\n            >>> from wbia.expt.test_result import *  # NOQA\n            >>> import wbia\n            >>> testres = wbia.testdata_expts('PZ_MTEST', a=['ctrl::unctrl_comp'])\n            >>> ibs = None\n            >>> result = testres.print_unique_annot_config_stats(ibs)\n            >>> print(result)\n        "
    if (ibs is None):
        ibs = testres.ibs
    cfx2_dannot_hashid = [ibs.get_annot_hashid_visual_uuid(daids) for daids in testres.cfgx2_daids]
    unique_daids = ut.compress(testres.cfgx2_daids, ut.flag_unique_items(cfx2_dannot_hashid))
    with ut.Indenter('[acfgstats]'):
        logger.info('+====')
        logger.info(('Printing %d unique annotconfig stats' % len(unique_daids)))
        common_acfg = testres.common_acfg
        common_acfg['common'] = ut.dict_filter_nones(common_acfg['common'])
        logger.info(('testres.common_acfg = ' + ut.repr2(common_acfg)))
        logger.info(('param_basis(len(daids)) = %r' % (testres.get_param_basis('len(daids)'),)))
        for (count, daids) in enumerate(unique_daids):
            logger.info('+---')
            logger.info(('acfgx = %r/%r' % (count, len(unique_daids))))
            if testres.has_constant_qaids():
                ibs.print_annotconfig_stats(testres.qaids, daids)
            else:
                ibs.print_annot_stats(daids, prefix='d')
            logger.info('L___')
Args:
    ibs (IBEISController): wbia controller object(default = None)

CommandLine:
    python -m wbia TestResult.print_unique_annot_config_stats

Example:
    >>> # DISABLE_DOCTEST
    >>> from wbia.expt.test_result import *  # NOQA
    >>> import wbia
    >>> testres = wbia.testdata_expts('PZ_MTEST', a=['ctrl::unctrl_comp'])
    >>> ibs = None
    >>> result = testres.print_unique_annot_config_stats(ibs)
    >>> print(result)
def print_unique_annot_config_stats(testres, ibs=None):
    "\n        Args:\n            ibs (IBEISController): wbia controller object(default = None)\n\n        CommandLine:\n            python -m wbia TestResult.print_unique_annot_config_stats\n\n        Example:\n            >>> # DISABLE_DOCTEST\n            >>> from wbia.expt.test_result import *  # NOQA\n            >>> import wbia\n            >>> testres = wbia.testdata_expts('PZ_MTEST', a=['ctrl::unctrl_comp'])\n            >>> ibs = None\n            >>> result = testres.print_unique_annot_config_stats(ibs)\n            >>> print(result)\n        "
    if (ibs is None):
        ibs = testres.ibs
    cfx2_dannot_hashid = [ibs.get_annot_hashid_visual_uuid(daids) for daids in testres.cfgx2_daids]
    unique_daids = ut.compress(testres.cfgx2_daids, ut.flag_unique_items(cfx2_dannot_hashid))
    with ut.Indenter('[acfgstats]'):
        logger.info('+====')
        logger.info(('Printing %d unique annotconfig stats' % len(unique_daids)))
        common_acfg = testres.common_acfg
        common_acfg['common'] = ut.dict_filter_nones(common_acfg['common'])
        logger.info(('testres.common_acfg = ' + ut.repr2(common_acfg)))
        logger.info(('param_basis(len(daids)) = %r' % (testres.get_param_basis('len(daids)'),)))
        for (count, daids) in enumerate(unique_daids):
            logger.info('+---')
            logger.info(('acfgx = %r/%r' % (count, len(unique_daids))))
            if testres.has_constant_qaids():
                ibs.print_annotconfig_stats(testres.qaids, daids)
            else:
                ibs.print_annot_stats(daids, prefix='d')
            logger.info('L___')