def try_printout(data, out, opts):
    try:
        return get_printout(out, opts)(data).rstrip()
    except (KeyError, AttributeError):
        log.debug(traceback.format_exc())
        try:
            return get_printout('nested', opts)(data).rstrip()
        except (KeyError, AttributeError):
            log.error('Nested output failed: ', exc_info=True)
            return get_printout('raw', opts)(data).rstrip()
NameGroup : NameAlphaGroup
dataset/ETHPy150Open saltstack/salt/salt/output/__init__.py/try_printout--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/util/nameparse.py/NameGroupParser.p_group