code: def subj_des_con_dirs(design, contrast, subjects=range(1, 7)):
      """Return a list of subject directories with this `design` and `contrast`
  
      Parameters
      ----------
      design : {'standard'}
      contrast : str
      subjects : list, optional
          which subjects
  
      Returns
      -------
      con_dirs : list
          list of directories matching `design` and `contrast`
      """
      rootdir = DATADIR
      con_dirs = []
      for s in subjects:
          f = pjoin(
              rootdir, "sub%03d" % s, "model", design, "fixed", contrast
          )
          if isdir(f):
              con_dirs.append(f)
      return con_dirs
  
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 3 for calling a global function with example usage: subj_des_con_dirs(design, contrast, subjects) and returns: con_dirs