def _dataset_version(path, name):
 ver_fname = op.join(path, 'version.txt')
 if op.exists(ver_fname):
  with open(ver_fname, 'r') as fid:
   version = fid.readline().strip()
 else:
  version = ('0.3' if (name == 'sample') else '0.7')
 return version

def _dataset_version ( path , name ) : ver_fname = op . join ( path , 'version.txt' ) if op . exists ( ver_fname ) : with open ( ver_fname , 'r' ) as fid : version = fid . readline ( ) . strip ( ) else : version = ( '0.3' if ( name == 'sample' ) else '0.7' ) return version
get the version of the dataset .