#NEWLINE# def _write_image_metadata( self , metadata ) : #NEWLINE# #INDENT# ( json_metadata , image_id ) = self . _dump_json ( metadata , True ) #NEWLINE# image_metadata_file = os . path . join ( self . new_image_dir , ( '%s.json' % image_id ) ) #NEWLINE# self . _write_json_metadata ( json_metadata , image_metadata_file ) #NEWLINE# return image_id