code: def _fix_shape(x, n, axis):
      """Internal auxiliary function for _raw_fft, _raw_fftnd."""
      s = list(x.shape)
      if s[axis] > n:
          index = [slice(None)] * len(s)
          index[axis] = slice(0, n)
          x = x[tuple(index)]
          return x, False
      else:
          index = [slice(None)] * len(s)
          index[axis] = slice(0, s[axis])
          s[axis] = n
          z = zeros(s, x.dtype.char)
          z[tuple(index)] = x
          return z, True
  
imports: from __future__ import division, print_function, absolute_import
  from numpy import swapaxes, zeros
  import numpy
  from .None import _fftpack
  from scipy.fftpack.helper import _init_nd_shape_and_axes_sorted
  import atexit
label_desc: Use image node_id 9 for calling a global function with example usage: _fix_shape(x, n, axis) and returns: x,  False, z,  True