code: def hist(coll):
      counts = {}
      for elem in coll:
          counts[elem] = counts.get(elem, 0) + 1
      return counts
  
imports: from __future__ import absolute_import, print_function, division
  import linecache
  import sys
  import traceback
  import numpy
  from six import iteritems, integer_types, string_types, with_metaclass
  from six.moves import StringIO
  from theano import config
  from theano.compat import PY3
label_desc: Use image node_id 16 for calling a global function with example usage: hist(coll) and returns: counts