#NEWLINE# def test_uint8_type_single_array( ) : #NEWLINE# #INDENT# image = mio . import_builtin_asset ( 'breakingbad.jpg' , normalise = False ) #NEWLINE# patch_shape = ( 16 , 16 ) #NEWLINE# patches = image . extract_patches ( patch_shape . landmarks [ 'PTS' ] . lms , patch_shape = patch_shape , as_single_array = True ) #NEWLINE# assert ( patches . dtype == np . uint8 )