code: def take(n, iterable):
      """Return first *n* items of the iterable as a list.
  
          >>> take(3, range(10))
          [0, 1, 2]
  
      If there are fewer than *n* items in the iterable, all of them are
      returned.
  
          >>> take(10, range(3))
          [0, 1, 2]
  
      """
      return list(islice(iterable, 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 1 for calling a global function with example usage: take(n, iterable) and returns: list