def has_labels(dataset_dir, filename=LABELS_FILENAME):
 return tf.gfile.Exists(os.path.join(dataset_dir, filename))

def has_labels ( dataset_dir , filename = LABELS_FILENAME ) : return tf . gfile . Exists ( os . path . join ( dataset_dir , filename ) )
specifies whether or not the dataset directory contains a label map file .