code: def io_iterator(
      inputs,
      out_dir,
      fnames,
      output_strategy="absolute",
      mix_names=False,
      out_keys=None,
  ):
      """Create an IOIterator from the parameters.
  
      Parameters
      ----------
      inputs : array
          List of input files.
      out_dir : string
          Output directory.
      fnames : array
          File names of all outputs to be created.
      output_strategy : string, optional
          Controls the behavior of the IOIterator for output paths.
      mix_names : bool, optional
          Whether or not to append a mix of input names at the beginning.
      out_keys : list, optional
          Output parameter names.
  
      Returns
      -------
          Properly instantiated IOIterator object.
  
      """
      io_it = IOIterator(
          output_strategy=output_strategy, mix_names=mix_names
      )
      io_it.set_inputs(*inputs)
      io_it.set_out_dir(out_dir)
      io_it.set_out_fnames(*fnames)
      io_it.create_outputs()
      if out_keys:
          io_it.set_output_keys(*out_keys)
  
      return io_it
  
imports: import inspect
  import itertools
  import numpy
  import os
  from glob import glob
  from dipy.workflows.base import get_args_default
label_desc: Use image node_id 6 for calling a global function with example usage: io_iterator(inputs, out_dir, fnames, output_strategy, mix_names, out_keys) and returns: io_it