#NEWLINE# def test_squared_even_patches_single_array( ) : #NEWLINE# #INDENT# image = mio . import_builtin_asset ( 'breakingbad.jpg' ) #NEWLINE# patch_shape = ( 16 , 16 ) #NEWLINE# patches = image . extract_patches ( image . landmarks [ 'PTS' ] . lms , as_single_array = True , patch_shape = patch_shape ) #NEWLINE# assert_equals ( patches . shape , ( ( 68 , 1 , 3 ) + patch_shape ) )