code: def print_tb(tb, limit=None, file=None):
      """Print up to 'limit' stack trace entries from the traceback 'tb'.
  
      If 'limit' is omitted or None, all entries are printed.  If 'file'
      is omitted or None, the output goes to sys.stderr; otherwise
      'file' should be an open file or file-like object with a write()
      method.
      """
      print_list(extract_tb(tb, limit=limit), file=file)
  
imports: import collections.abc
  import itertools
  import linecache
  import sys
  import textwrap
  from contextlib import suppress
label_desc: Use image node_id 3 for calling a global function with example usage: print_tb(tb, limit, file) without return types