def get_title_aug(testres, with_size=True, with_db=True, with_cfg=True, friendly=False):
    "\n        Args:\n            with_size (bool): (default = True)\n\n        Returns:\n            str: title_aug\n\n        CommandLine:\n            python -m wbia --tf TestResult.get_title_aug --db PZ_Master1 -a timequalctrl::timectrl\n\n        Example:\n            >>> # DISABLE_DOCTEST\n            >>> from wbia.expt.test_result import *  # NOQA\n            >>> import wbia\n            >>> ibs, testres = wbia.testdata_expts('PZ_MTEST')\n            >>> with_size = True\n            >>> title_aug = testres.get_title_aug(with_size)\n            >>> res = u'title_aug = %s' % (title_aug,)\n            >>> print(res)\n        "
    ibs = testres.ibs
    title_aug = ''
    if with_db:
        title_aug += ('db=' + ibs.get_dbname())
    if with_cfg:
        try:
            if ('_cfgname' in testres.common_acfg['common']):
                try:
                    annot_cfgname = testres.common_acfg['common']['_cfgstr']
                except KeyError:
                    annot_cfgname = testres.common_acfg['common']['_cfgname']
            else:
                cfgname_list = [cfg['dcfg__cfgname'] for cfg in testres.varied_acfg_list]
                cfgname_list = ut.unique_ordered(cfgname_list)
                annot_cfgname = (('[' + ','.join(cfgname_list)) + ']')
            try:
                pipeline_cfgname = testres.common_cfgdict['_cfgstr']
            except KeyError:
                cfgstr_list = [cfg['_cfgstr'] for cfg in testres.varied_cfg_list]
                uniuqe_cfgstrs = ut.unique_ordered(cfgstr_list)
                pipeline_cfgname = (('[' + ','.join(uniuqe_cfgstrs)) + ']')
            annot_cfgname = testres._shorten_lbls(annot_cfgname)
            pipeline_cfgname = testres._shorten_lbls(pipeline_cfgname)
            if (len(annot_cfgname) < 64):
                title_aug += (' a=' + annot_cfgname)
            if (len(pipeline_cfgname) < 64):
                title_aug += (' t=' + pipeline_cfgname)
        except Exception as ex:
            logger.info(ut.repr2(testres.common_acfg))
            logger.info(ut.repr2(testres.common_cfgdict))
            ut.printex(ex)
            raise
    if with_size:
        if ut.get_argflag('--hack_size_nl'):
            title_aug += '\n'
        if testres.has_constant_qaids():
            title_aug += (' #qaids=%r' % (len(testres.qaids),))
        elif testres.has_constant_length_qaids():
            title_aug += (' #qaids=%r*' % (len(testres.cfgx2_qaids[0]),))
        if testres.has_constant_daids():
            daids = testres.cfgx2_daids[0]
            title_aug += (' #daids=%r' % (len(testres.cfgx2_daids[0]),))
            if testres.has_constant_qaids():
                all_daid_per_name_stats = ut.get_stats(ibs.get_num_annots_per_name(daids)[0], use_nan=True)
                if (all_daid_per_name_stats['std'] == 0):
                    title_aug += (' dper_name=%s' % (ut.scalar_str(all_daid_per_name_stats['mean'], max_precision=2),))
                else:
                    title_aug += (' dper_name=%s±%s' % (ut.scalar_str(all_daid_per_name_stats['mean'], precision=2), ut.scalar_str(all_daid_per_name_stats['std'], precision=2)))
        elif testres.has_constant_length_daids():
            daids = testres.cfgx2_daids[0]
            title_aug += (' #daids=%r*' % (len(testres.cfgx2_daids[0]),))
    if friendly:
        title_aug = ut.multi_replace(title_aug, list(ibs.const.DBNAME_ALIAS.keys()), list(ibs.const.DBNAME_ALIAS.values()))
    return title_aug
Args:
    with_size (bool): (default = True)

Returns:
    str: title_aug

CommandLine:
    python -m wbia --tf TestResult.get_title_aug --db PZ_Master1 -a timequalctrl::timectrl

Example:
    >>> # DISABLE_DOCTEST
    >>> from wbia.expt.test_result import *  # NOQA
    >>> import wbia
    >>> ibs, testres = wbia.testdata_expts('PZ_MTEST')
    >>> with_size = True
    >>> title_aug = testres.get_title_aug(with_size)
    >>> res = u'title_aug = %s' % (title_aug,)
    >>> print(res)
def get_title_aug(testres, with_size=True, with_db=True, with_cfg=True, friendly=False):
    "\n        Args:\n            with_size (bool): (default = True)\n\n        Returns:\n            str: title_aug\n\n        CommandLine:\n            python -m wbia --tf TestResult.get_title_aug --db PZ_Master1 -a timequalctrl::timectrl\n\n        Example:\n            >>> # DISABLE_DOCTEST\n            >>> from wbia.expt.test_result import *  # NOQA\n            >>> import wbia\n            >>> ibs, testres = wbia.testdata_expts('PZ_MTEST')\n            >>> with_size = True\n            >>> title_aug = testres.get_title_aug(with_size)\n            >>> res = u'title_aug = %s' % (title_aug,)\n            >>> print(res)\n        "
    ibs = testres.ibs
    title_aug = 
    if with_db:
        title_aug += ('db=' + ibs.get_dbname())
    if with_cfg:
        try:
            if ('_cfgname' in testres.common_acfg['common']):
                try:
                    annot_cfgname = testres.common_acfg['common']['_cfgstr']
                except KeyError:
                    annot_cfgname = testres.common_acfg['common']['_cfgname']
            else:
                cfgname_list = [cfg['dcfg__cfgname'] for cfg in testres.varied_acfg_list]
                cfgname_list = ut.unique_ordered(cfgname_list)
                annot_cfgname = (('[' + ','.join(cfgname_list)) + ']')
            try:
                pipeline_cfgname = testres.common_cfgdict['_cfgstr']
            except KeyError:
                cfgstr_list = [cfg['_cfgstr'] for cfg in testres.varied_cfg_list]
                uniuqe_cfgstrs = ut.unique_ordered(cfgstr_list)
                pipeline_cfgname = (('[' + ','.join(uniuqe_cfgstrs)) + ']')
            annot_cfgname = testres._shorten_lbls(annot_cfgname)
            pipeline_cfgname = testres._shorten_lbls(pipeline_cfgname)
            if (len(annot_cfgname) < 64):
                title_aug += (' a=' + annot_cfgname)
            if (len(pipeline_cfgname) < 64):
                title_aug += (' t=' + pipeline_cfgname)
        except Exception as ex:
            logger.info(ut.repr2(testres.common_acfg))
            logger.info(ut.repr2(testres.common_cfgdict))
            ut.printex(ex)
            raise
    if with_size:
        if ut.get_argflag('--hack_size_nl'):
            title_aug += '\n'
        if testres.has_constant_qaids():
            title_aug += (' #qaids=%r' % (len(testres.qaids),))
        elif testres.has_constant_length_qaids():
            title_aug += (' #qaids=%r*' % (len(testres.cfgx2_qaids[0]),))
        if testres.has_constant_daids():
            daids = testres.cfgx2_daids[0]
            title_aug += (' #daids=%r' % (len(testres.cfgx2_daids[0]),))
            if testres.has_constant_qaids():
                all_daid_per_name_stats = ut.get_stats(ibs.get_num_annots_per_name(daids)[0], use_nan=True)
                if (all_daid_per_name_stats['std'] == 0):
                    title_aug += (' dper_name=%s' % (ut.scalar_str(all_daid_per_name_stats['mean'], max_precision=2),))
                else:
                    title_aug += (' dper_name=%s±%s' % (ut.scalar_str(all_daid_per_name_stats['mean'], precision=2), ut.scalar_str(all_daid_per_name_stats['std'], precision=2)))
        elif testres.has_constant_length_daids():
            daids = testres.cfgx2_daids[0]
            title_aug += (' #daids=%r*' % (len(testres.cfgx2_daids[0]),))
    if friendly:
        title_aug = ut.multi_replace(title_aug, list(ibs.const.DBNAME_ALIAS.keys()), list(ibs.const.DBNAME_ALIAS.values()))
    return title_aug