code: def __fix_shape(x, n, axis, dct_or_dst):
      tmp = _asfarray(x)
      copy_made = _datacopied(tmp, x)
      if n is None:
          n = tmp.shape[axis]
      elif n != tmp.shape[axis]:
          tmp, copy_made2 = _fix_shape(tmp, n, axis)
          copy_made = copy_made or copy_made2
      if n < 1:
          raise ValueError(
              "Invalid number of %s data points "
              "(%d) specified." % (dct_or_dst, n)
          )
      return tmp, n, copy_made
  
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 9 for calling a global function with example usage: __fix_shape(x, n, axis, dct_or_dst) and returns: tmp,  n,  copy_made