code: def post_mortem(traceback):
      
      try:
          from ipdb import post_mortem
      except ImportError:
          from pdb import post_mortem
  
      message = "Entering post-mortem debugger. Type `help` for help."
      redline = colorized("{autored}%s{/autored}") % "{0:=^{1}}"
  
      print()
      print(redline.format(" CRASH! ", len(message)))
      print(message)
      print(redline.format("", len(message)))
      print()
  
      post_mortem(traceback)
docs: Work with an exception in a post-mortem debugger.
  
      Try to use `ipdb` first, falling back to `pdb`.