code: def _swap_norm_direction(norm):
      try:
          return _swap_norm_dictionary[norm]
      except KeyError:
          raise ValueError(
              f'Invalid norm value {norm}; should be "backward", '
              '"ortho" or "forward".'
          )
  
imports: import itertools
  import math
  from numbers import Number
  import operator
  from .None import numpy_fft
  from ..builders._utils import _default_effort, _default_threads, _cook_nd_args
  from ._utils import _Xfftn
  import numpy
  from scipy.fftpack import diff, tilbert, itilbert, hilbert, ihilbert, cs_diff, sc_diff, ss_diff, cc_diff, shift, fftshift, ifftshift, fftfreq, rfftfreq, convolve
  from ..pyfftw import next_fast_len
label_desc: Use image node_id 14 for calling a global function with example usage: _swap_norm_direction(norm) and returns: _swap_norm_dictionary