code: def do_3d_to_4d(filenames, check_affines=True):
      imgs = []
      for fname in filenames:
          img = nib.load(fname)
          imgs.append(img)
      return nib.concat_images(imgs, check_affines=check_affines)
  
imports: import os
  from argparse import ArgumentParser, RawDescriptionHelpFormatter
  from os.path import join
  import nibabel
label_desc: Use image node_id 1 for calling a global function with example usage: do_3d_to_4d(filenames, check_affines) and returns: nib