code: def chunked(src, size, count=None, **kw):
      """Returns a list of *count* chunks, each with *size* elements,
      generated from iterable *src*. If *src* is not evenly divisible by
      *size*, the final chunk will have fewer than *size* elements.
      Provide the *fill* keyword argument to provide a pad value and
      enable padding, otherwise no padding will take place.
      >>> chunked(range(10), 3)
      [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9]]
      >>> chunked(range(10), 3, fill=None)
      [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9, None, None]]
      >>> chunked(range(10), 3, count=2)
      [[0, 1, 2], [3, 4, 5]]
  
      See :func:`chunked_iter` for more info.
      """
      chunk_iter = chunked_iter(src, size, **kw)
      if count is None:
          return list(chunk_iter)
      else:
          return list(itertools.islice(chunk_iter, count))
  
imports: import os
  import math
  import time
  import codecs
  import random
  import socket
  import hashlib
  import itertools
  from collections import Mapping, Sequence, Set, ItemsView
label_desc: Use image node_id 6 for calling a global function with example usage: chunked(src, size, count) and returns: list, list