code: def output_AR1(outfile, fmri_image, clobber=False):
      """
      Create an output file of the AR1 parameter from the OLS pass of
      fmristat.
  
      Parameters
      ----------
      outfile :
      fmri_image : ``FmriImageList`` or 4D image
         object such that ``object[0]`` has attributes ``coordmap`` and ``shape``
      clobber : bool
         if True, overwrite previous output
  
      Returns
      -------
      regression_output : ``RegressionOutput`` instance
      """
      outim = ModelOutputImage(
          outfile,
          fmri_image[0].coordmap,
          fmri_image[0].shape,
          clobber=clobber,
      )
      return outputters.RegressionOutput(outim, outputters.output_AR1)
  
imports: import copy
  from os import path
  import numpy
  import numpy.linalg
  from nipy.algorithms.statistics.formula import make_recarray
  from nipy.algorithms.statistics.models.regression import ARModel, OLSModel, ar_bias_correct, ar_bias_corrector
  from nipy.core.api import AffineTransform, Image, matrix_generator, parcels
  from nipy.io.api import save_image
  from ..api import FmriImageList, axis0_generator
  from .None import outputters
label_desc: Use image node_id 6 for calling a global function with example usage: output_AR1(outfile, fmri_image, clobber) and returns: outputters