code: def _swap_direction(norm):
      try:
          return _SWAP_DIRECTION_MAP[norm]
      except KeyError:
          raise ValueError(
              f'Invalid norm value {norm}; should be "backward", "ortho" or "forward".'
          ) from None
  
file_path: ivy/ivy/functional/frontends/numpy/fft/discrete_fourier_transform.py
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back
  from ivy.func_wrapper import with_unsupported_dtypes
label_desc: Use image node_id 1 for calling a global function with example usage: _swap_direction(norm) and returns: _SWAP_DIRECTION_MAP