code: def get_experiment(path_dict):
      """Get the record arrays for the experimental design.
  
      Parameters
      ----------
      path_dict : dict
          containing key 'rootdir', 'run', 'subj'
  
      Returns
      -------
      experiment, initial : Two record arrays.
  
      """
      # The following two lines read in the .csv files
      # and return recarrays, with fields
      # experiment: ['time', 'sentence', 'speaker']
      # initial: ['time', 'initial']
  
      rootdir = path_dict["rootdir"]
      if not exists(
          pjoin(rootdir, "experiment_run%(run)03d.csv") % path_dict
      ):
          e = (
              "can't find design for subject=%(subj)d,run=%(subj)d"
              % path_dict
          )
          raise OSError(e)
  
      experiment = csv2rec(
          pjoin(rootdir, "experiment_run%(run)03d.csv") % path_dict
      )
  
      return experiment
  
file_path: nipy/examples/ds105/ds105_util.py
imports: import os
  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 7 for calling a global function with example usage: get_experiment(path_dict) and returns: experiment