code: def _prod(x):
      """Product of a list of numbers; ~40x faster vs np.prod for Python tuples"""
      if len(x) == 0:
          return 1
      return functools.reduce(operator.mul, x)
  
imports: from __future__ import division, print_function, absolute_import
  import functools
  import operator
  import itertools
  import numpy
  from scipy._lib.six import zip, xrange, iteritems, iterkeys, itervalues
  from .base import spmatrix, isspmatrix
  from .sputils import isdense, getdtype, isshape, isintlike, isscalarlike, upcast, upcast_scalar, IndexMixin, get_index_dtype, check_shape
label_desc: Use image node_id 2 for calling a global function with example usage: _prod(x) and returns: functools, int