code: def _get_dct_fun(type, dtype):
      try:
          name = {"float64": "ddct%d", "float32": "dct%d"}[dtype.name]
      except KeyError:
          raise ValueError("dtype %s not supported" % dtype)
      try:
          f = getattr(_fftpack, name % type)
      except AttributeError as e:
          raise ValueError(str(e) + ". Type %d not understood" % type)
      return f
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from scipy.fftpack import _fftpack
  from scipy.fftpack.basic import _datacopied, _fix_shape, _asfarray
  from scipy.fftpack.helper import _init_nd_shape_and_axes
  import atexit
label_desc: Use image node_id 7 for calling a global function with example usage: _get_dct_fun(type, dtype) and returns: f