def get_traceback(exc=None):
    if exc is None:
        exc = sys.exc_info()
    if not exc:
        return None
    tb = exc[2]
    sio = StringIO()
    traceback.print_tb(tb, file=sio)
    del tb  # needs to be done explicitly see: http://docs.python.org/2/library/sys.html#sys.exc_info
    return sio.getvalue()
Test that the references are valid (return instance methods)
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/utils/misc.py/get_traceback--crossover with--dataset/ETHPy150Open ARM-software/workload-automation/wlauto/external/louie/test/test_saferef.py/TestSaferef.test_Valid