def obtain_files_from_path(files, flatten = False): images_as_array=[] for file in files: # ignore OS specific files if not file.startswith(\