How to use my own fmri and behavioral data to perform the space_net

Hi all, I have read the manual of the “plot_haxby_space_net.py”. And this script work in my computer. However, i donot know how to apply this scripts in my own data (i.e., 4D fmri data and behavioral index)?
Thanks
Rujing