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 numpy
  from scipy._lib.six import string_types
  from scipy.linalg import get_lapack_funcs, LinAlgError, cholesky_banded, cho_solve_banded
  from .None import _bspl
  from .None import _fitpack_impl
  from .None import _fitpack
label_desc: Use image node_id 1 for calling a global function with example usage: prod(x) and returns: functools, int