code: def print_last(limit=None, file=None, chain=True):
      """This is a shorthand for 'print_exception(sys.last_type,
      sys.last_value, sys.last_traceback, limit, file)'."""
      if not hasattr(sys, "last_type"):
          raise ValueError("no last exception")
      print_exception(
          sys.last_type,
          sys.last_value,
          sys.last_traceback,
          limit,
          file,
          chain,
      )
  
imports: import collections.abc
  import itertools
  import linecache
  import sys
  import textwrap
  from contextlib import suppress
label_desc: Use image node_id 14 for calling a global function with example usage: print_last(limit, file, chain) without return types