code: def _precook_1d_args(a, n, axis):
      """Turn ``*(n, axis)`` into ``(s, axes)``"""
      if n is not None:
          s = [int(n)]
      else:
          s = None
  
      # Force an error with an invalid axis
      a.shape[axis]
  
      return s, (axis,)
  
file_path: py-fftw/pyfftw/builders/_utils.py
imports: import multiprocessing
  import pyfftw
  import numpy
  import warnings
  from ..None import _threading_type
  from ..None import config
label_desc: Use image node_id 7 for calling a global function with example usage: _precook_1d_args(a, n, axis) and returns: s,  axis