code: def tail(n, iterable):
      """Return an iterator over the last *n* items of *iterable*.
  
      >>> t = tail(3, 'ABCDEFG')
      >>> list(t)
      ['E', 'F', 'G']
  
      """
      return iter(deque(iterable, maxlen=n))
  
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 3 for calling a global function with example usage: tail(n, iterable) and returns: iter