code: def take(n, iterable):
      """Return first *n* items of the iterable as a list.
  
          >>> take(3, range(10))
          [0, 1, 2]
          >>> take(5, range(3))
          [0, 1, 2]
  
      Effectively a short replacement for ``next`` based iterator consumption
      when you want more than one item, but less than the whole iterator.
  
      """
      return list(islice(iterable, n))
  
imports: from collections import deque
  from itertools import chain, combinations, count, cycle, groupby, islice, repeat, starmap, tee
  import operator
  from random import randrange, sample, choice
  from six import PY2
  from six.moves import filter, filterfalse, map, range, zip, zip_longest
label_desc: Use image node_id 2 for calling a global function with example usage: take(n, iterable) and returns: list