code: '''simple docstring'''
  
  
  
  
  
  from cva import COLOR_BGR2GRAY, cvtColor, imread, imshow, waitKey
  from numpy import divide, inta, multiply, ravel, sort, zeros_like
  
  def      SCREAMING_SNAKE_CASE_  (		snake_case__     ,						snake_case__=3							)  ->			str:
  							lowerCAmelCase				=	int(mask / 2							)
  							# copy image size
  							lowerCAmelCase				=	zeros_like(_A							)
  							for i in range(_A     ,						gray_img.shape[0] - bd							):
  														for j in range(_A     ,						gray_img.shape[1] - bd							):
  																					# get mask according with mask
  																					lowerCAmelCase				=	ravel(gray_img[i - bd : i + bd + 1, j - bd : j + bd + 1]							)
  																					# calculate mask median
  																					lowerCAmelCase				=	sort(_A							)[inta(divide((multiply(_A     ,						_A							))     ,						2							) + 1							)]
  																					lowerCAmelCase				=	median
  							return median_img
  
  
  if __name__ == "__main__":
  	# read original image
  	lowercase__    :       Tuple						=			imread('''../image_data/lena.jpg''')
  	# turn image in gray scale value
  	lowercase__    :       Dict						=			cvtColor(img, COLOR_BGR2GRAY)
  
  	# get values with two different mask size
  	lowercase__    :       Optional[int]						=			median_filter(gray, 3)
  	lowercase__    :       int						=			median_filter(gray, 5)
  
  	# show result images
  	imshow('''median filter with 3x3 mask''', medianaxa)
  	imshow('''median filter with 5x5 mask''', medianaxa)
  	waitKey(0)
  
  
  
  
style_context: def      SCREAMING_SNAKE_CASE_  (		snake_case__     ,						snake_case__							)  ->			int:
  							return (input_a, input_a).count(0							) % 2
  
  def      SCREAMING_SNAKE_CASE_  (		)  ->			None:
  							assert xor_gate(0     ,						0							) == 0
  							assert xor_gate(0     ,						1							) == 1
  							assert xor_gate(1     ,						0							) == 1
  							assert xor_gate(1     ,						1							) == 0
  
  
  if __name__ == "__main__":
  	print(xor_gate(0, 0))
  	print(xor_gate(0, 1))
  
  
  
  