code: 
  '''simple docstring'''
  
  from __future__ import annotations
  
  from collections import deque
  from queue import Queue
  from timeit import timeit
  
  UpperCamelCase_     			=       {
      """A""": ["""B""", """C"""],
      """B""": ["""A""", """D""", """E"""],
      """C""": ["""A""", """F"""],
      """D""": ["""B"""],
      """E""": ["""B""", """F"""],
      """F""": ["""C""", """E"""],
  }
  
  
  def 	_UpperCAmelCase				(  _lowerCamelCase						:       dict  ,      _lowerCamelCase						:       str		)    ->						list[str]:
    _lowerCAmelCase       :  Any   				=					{start}
    _lowerCAmelCase       :  Tuple   				=					[start]
    _lowerCAmelCase       :  Queue   				=					Queue()
    queue.put(_lowerCamelCase		)
    while not queue.empty():
      _lowerCAmelCase       :  int   				=					queue.get()
      for w in graph[v]:
        if w not in explored:
          explored.add(_lowerCamelCase		)
          result.append(_lowerCamelCase		)
          queue.put(_lowerCamelCase		)
    return result
  
  
  def 	_UpperCAmelCase				(  _lowerCamelCase						:       dict  ,      _lowerCamelCase						:       str		)    ->						list[str]:
    _lowerCAmelCase       :  Any   				=					{start}
    _lowerCAmelCase       :  Union[str, Any]   				=					[start]
    _lowerCAmelCase       :  Dict   				=					deque([start]		)
    while queue:
      _lowerCAmelCase       :  Any   				=					queue.popleft()
      for child in graph[v]:
        if child not in visited:
          visited.add(_lowerCamelCase		)
          result.append(_lowerCamelCase		)
          queue.append(_lowerCamelCase		)
    return result
  
  
  def 	_UpperCAmelCase				(  _lowerCamelCase						:       str		)    ->						None:
    _lowerCAmelCase       :  Any   				=					f'from __main__ import G, {name}'
    _lowerCAmelCase       :  Dict   				=					1_00_00
    _lowerCAmelCase       :  Optional[Any]   				=					timeit(f'{name}(G, \'A\')'  ,      setup=_lowerCamelCase  ,      number=_lowerCamelCase		)
    print(f'{name:<35} finished {number} runs in {res:.5f} seconds'		)
  
  
  if __name__ == "__main__":
       import doctest
  
       doctest.testmod()
  
       benchmark_function("""breadth_first_search""")
       benchmark_function("""breadth_first_search_with_deque""")
       # breadth_first_search                finished 10000 runs in 0.20999 seconds
       # breadth_first_search_with_deque     finished 10000 runs in 0.01421 seconds
  
  
  
style_context: 
  '''simple docstring'''
  
  from cva import COLOR_BGR2GRAY, cvtColor, imread, imshow, waitKey
  from numpy import divide, inta, multiply, ravel, sort, zeros_like
  
  
  def 	_UpperCAmelCase				(  _lowerCamelCase						:       str  ,      _lowerCamelCase						:       List[Any]=3		)    ->						Union[str, Any]:
    _lowerCAmelCase       :  str   				=					int(mask / 2		)
    # copy image size
    _lowerCAmelCase       :  Dict   				=					zeros_like(_lowerCamelCase		)
    for i in range(_lowerCamelCase  ,      gray_img.shape[0] - bd		):
      for j in range(_lowerCamelCase  ,      gray_img.shape[1] - bd		):
        # get mask according with mask
        _lowerCAmelCase       :  Union[str, Any]   				=					ravel(gray_img[i - bd : i + bd + 1, j - bd : j + bd + 1]		)
        # calculate mask median
        _lowerCAmelCase       :  str   				=					sort(_lowerCamelCase		)[inta(divide((multiply(_lowerCamelCase  ,      _lowerCamelCase		))  ,      2		) + 1		)]
        _lowerCAmelCase       :  Dict   				=					median
    return median_img
  
  
  if __name__ == "__main__":
       # read original image
       UpperCamelCase_     			=       imread("""../image_data/lena.jpg""")
       # turn image in gray scale value
       UpperCamelCase_     			=       cvtColor(img, COLOR_BGR2GRAY)
  
       # get values with two different mask size
       UpperCamelCase_     			=       median_filter(gray, 3)
       UpperCamelCase_     			=       median_filter(gray, 5)
  
       # show result images
       imshow("""median filter with 3x3 mask""", medianaxa)
       imshow("""median filter with 5x5 mask""", medianaxa)
       waitKey(0)
  
  
  