Get information about a frame or traceback object. A Traceback object is returned.
inspect.getframeinfo(frame, context=1)