code: def path_info_design(subj, design):
      """Construct path information dict for subject and design.
  
      Parameters
      ----------
      subj : int
          subject number (0..15 inclusive)
      design : {'event', 'block'}
          type of design
  
      Returns
      -------
      path_dict : dict
          having keys 'rootdir', 'subj', 'design'
      """
      path_dict = {"subj": subj, "design": design}
      rootdir = (
          pjoin(DATADIR, "fiac_%(subj)02d", "%(design)s") % path_dict
      )
      path_dict["rootdir"] = rootdir
      return path_dict
  
imports: import csv
  import os
  from io import StringIO
  from os import listdir, makedirs
  from os.path import abspath, exists, isdir, splitext
  from os.path import join
  import numpy
  import pandas
  from nipy.io.api import load_image
label_desc: Use image node_id 6 for calling a global function with example usage: path_info_design(subj, design) and returns: path_dict