def create_dir_if_needed(dest_directory):
 if (not tf.gfile.IsDirectory(dest_directory)):
  tf.gfile.MakeDirs(dest_directory)
 return True

def create_dir_if_needed ( dest_directory ) : if ( not tf . gfile . IsDirectory ( dest_directory ) ) : tf . gfile . MakeDirs ( dest_directory ) return True
create directory if doesnt exist .