code: def _get_norm_mode(normalize):
      try:
          nm = {None: 0, "ortho": 1}[normalize]
      except KeyError:
          raise ValueError("Unknown normalize mode %s" % normalize)
      return nm
  
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 8 for calling a global function with example usage: _get_norm_mode(normalize) and returns: nm