(mid, action, log_dir)
dump action
dump action
dump action
def dump_action(mid, action, log_dir):
    """
        dump action
    """
    filename = os.path.join(log_dir, "actions", "%d.pkl" % mid)
    pickle.dump(action, open(filename, "wb"))
def dump_action ( mid , action , log_dir ) : filename = os . path . join ( log_dir , "actions" , "%d.pkl" % mid ) pickle . dump ( action , open ( filename , "wb" ) )