code: 
  
  
  '''simple docstring'''
  
  from cva import COLOR_BGR2GRAY, cvtColor, imread, imshow, waitKey
  from numpy import array, dot, pad, ravel, uinta, zeros
  
  
  
  def        SCREAMING_SNAKE_CASE__(		_UpperCamelCase      :				List[str]    ,		_UpperCamelCase      :				Any   )		->					int:
  
  
  
  
  
     '''simple docstring'''
  
  
  
  
  
  
  
     UpperCamelCase__						,		UpperCamelCase__ 						=						image.shape
     UpperCamelCase__ 						=						cols - block_size[1] + 1
     UpperCamelCase__ 						=						rows - block_size[0] + 1
     UpperCamelCase__ 						=						zeros((dst_height * dst_width, block_size[1] * block_size[0])   )
     UpperCamelCase__ 						=						0
     for i in range(0    ,		_UpperCamelCase   ):
        for j in range(0    ,		_UpperCamelCase   ):
           UpperCamelCase__ 						=						ravel(image[i : i + block_size[0], j : j + block_size[1]]   )
           UpperCamelCase__ 						=						window
           row += 1
  
     return image_array
  
  
  
  def        SCREAMING_SNAKE_CASE__(		_UpperCamelCase      :				str    ,		_UpperCamelCase      :				List[str]   )		->					str:
  
  
  
  
  
     '''simple docstring'''
  
  
  
  
  
  
  
     UpperCamelCase__						,		UpperCamelCase__ 						=						image.shape[0], image.shape[1]
     UpperCamelCase__ 						=						filter_kernel.shape[0]
     UpperCamelCase__ 						=						k_size // 2
     # Pads image with the edge values of array.
     UpperCamelCase__ 						=						pad(_UpperCamelCase    ,		_UpperCamelCase    ,		mode="edge"   )
  
     # im2col, turn the k_size*k_size pixels into a row and np.vstack all rows
     UpperCamelCase__ 						=						imacol(_UpperCamelCase    ,		(k_size, k_size)   )
  
     #  turn the kernel into shape(k*k, 1)
     UpperCamelCase__ 						=						ravel(_UpperCamelCase   )
     # reshape and get the dst image
     UpperCamelCase__ 						=						dot(_UpperCamelCase    ,		_UpperCamelCase   ).reshape(_UpperCamelCase    ,		_UpperCamelCase   )
     return dst
  
  
  if __name__ == "__main__":
         # read original image
         __lowercase:		Optional[int]							=     imread(r"../image_data/lena.jpg")
         # turn image in gray scale value
         __lowercase:		Optional[int]							=     cvtColor(img, COLOR_BGR2GRAY)
         # Laplace operator
         __lowercase:		int							=     array([[0, 1, 0], [1, -4, 1], [0, 1, 0]])
         __lowercase:		List[str]							=     img_convolve(gray, Laplace_kernel).astype(uinta)
         imshow("Laplacian", out)
         waitKey(0)
style_context: 
  
  
  '''simple docstring'''
  
  def        SCREAMING_SNAKE_CASE__(		_UpperCamelCase      :				int = 10_00   )		->					int:
  
  
  
  
  
     '''simple docstring'''
  
  
  
  
  
  
  
     return sum(i for i in range(_UpperCamelCase   ) if i % 3 == 0 or i % 5 == 0   )
  
  
  if __name__ == "__main__":
         print(F"""{solution() = }""")