code: def tail(n, iterable):
      """Return an iterator over the last *n* items of *iterable*.
  
      >>> t = tail(3, 'ABCDEFG')
      >>> list(t)
      ['E', 'F', 'G']
  
      """
      # If the given iterable has a length, then we can use islice to get its
      # final elements. Note that if the iterable is not actually Iterable,
      # either islice or deque will throw a TypeError. This is why we don't
      # check if it is Iterable.
      if isinstance(iterable, Sized):
          yield from islice(iterable, max(0, len(iterable) - n), None)
      else:
          yield from iter(deque(iterable, maxlen=n))
  
imports: import math
  import operator
  import warnings
  from collections import deque
  from collections.abc import Sized
  from functools import reduce
  from itertools import chain, combinations, compress, count, cycle, groupby, islice, product, repeat, starmap, tee, zip_longest
  from random import randrange, sample, choice
  from sys import hexversion
label_desc: Use image node_id 3 for calling a global function with example usage: tail(n, iterable) without return types