#NEWLINE# def acquire_nametable( image_file , palette = palette ) : #NEWLINE# #INDENT# image = Image . open ( image_file ) #NEWLINE# sprs = acquire_chr ( image , optimize_repeated = True ) #NEWLINE# nametable = read_nametable ( image , sprs , palette ) #NEWLINE# return ( nametable , sprs )