def save_variables(pickle_file_name, var, info, overwrite = False):
  if os.path.exists(pickle_file_name) and overwrite == False:
    raise Exception('{:s} exists and over write is false.'.format(pickle_file_name))
  # Construct the dictionary
  assert(type(var) == list); assert(type(info) == list);
  d = {}
  for i in xrange(len(var)):
    d[info[i]] = var[i]
  with open(pickle_file_name, 'wb') as f:
    cPickle.dump(d, f, cPickle.HIGHEST_PROTOCOL)
def save_variables(pickle_file_name, var, info, overwrite = False)
dataset/ETHPy150Open s-gupta/visual-concepts/sg_utils.py/save_variables