code: def write_paradigm(paradigm, session):
      """Function to write a paradigm to a file and return the address"""
      import tempfile
  
      csvfile = tempfile.mkdtemp() + "/paradigm.csv"
      paradigm.write_to_csv(csvfile, session)
      return csvfile
  
file_path: nipy/nipy/modalities/fmri/tests/test_paradigm.py
imports: import numpy
  from ..experimental_paradigm import BlockParadigm, EventRelatedParadigm, load_paradigm_from_csv_file
label_desc: Use image node_id 5 for calling a global function with example usage: write_paradigm(paradigm, session) and returns: csvfile