code: def nth(iterable, n, default=None):
      """Returns the nth item or a default value.
  
      >>> l = range(10)
      >>> nth(l, 3)
      3
      >>> nth(l, 20, "zebra")
      'zebra'
  
      """
      return next(islice(iterable, n, None), default)
  
imports: import warnings
  from collections import deque
  from itertools import chain, combinations, count, cycle, groupby, islice, repeat, starmap, tee, zip_longest
  import operator
  from random import randrange, sample, choice
label_desc: Use image node_id 5 for calling a global function with example usage: nth(iterable, n, default) and returns: next