def setup_test_episode_file():
 if (not os.path.exists(FILE_DIR)):
  os.makedirs(FILE_DIR)
 try:
  with open(FILE_PATH, 'wb') as ep_file:
   ep_file.write('foo bar')
   ep_file.flush()
 except Exception:
  print 'Unable to set up test episode'
  raise

def setup_test_episode_file ( ) : if ( not os . path . exists ( FILE_DIR ) ) : os . makedirs ( FILE_DIR ) try : with open ( FILE_PATH , 'wb' ) as ep_file : ep_file . write ( 'foo bar' ) ep_file . flush ( ) except Exception : print 'Unable to set up test episode' raise
create a test episode directory with a test episode in it .