






import sys
import turtle
def       snake_case_		(     lowerCAmelCase_       :						Tuple       ,       lowerCAmelCase_       :						Union[str, Any]      ):
       return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2
def       snake_case_		(     lowerCAmelCase_       :						str       ,       lowerCAmelCase_       :						Dict       ,       lowerCAmelCase_       :						str       ,       lowerCAmelCase_       :						str       ,       ):
       my_pen.up()
       my_pen.goto(vertexa[0]       ,       vertexa[1]      )
       my_pen.down()
       my_pen.goto(vertexa[0]       ,       vertexa[1]      )
       my_pen.goto(vertexa[0]       ,       vertexa[1]      )
       my_pen.goto(vertexa[0]       ,       vertexa[1]      )

       if depth == 0:
              return

       triangle(a__       ,       get_mid(a__       ,       a__      )       ,       get_mid(a__       ,       a__      )       ,       depth - 1      )
       triangle(a__       ,       get_mid(a__       ,       a__      )       ,       get_mid(a__       ,       a__      )       ,       depth - 1      )
       triangle(a__       ,       get_mid(a__       ,       a__      )       ,       get_mid(a__       ,       a__      )       ,       depth - 1      )


if __name__ == "__main__":
 if len(sys.argv) != 2:
  raise ValueError(
      '''Correct format for using this script: '''
      '''python fractals.py <int:depth_for_fractal>'''
  )
 lowerCamelCase : Any						   =       turtle.Turtle()
 my_pen.ht()
 my_pen.speed(5)
 my_pen.pencolor('''red''')

 lowerCamelCase : Union[str, Any]						   =       [(-1_75, -1_25), (0, 1_75), (1_75, -1_25)]  # vertices of triangle
 triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))







from .imports import is_tqdm_available


if is_tqdm_available():
	from tqdm.auto import tqdm as _tqdm

from ..state import PartialState
def       snake_case_		(     lowerCAmelCase_       :						bool = True       ,       *lowerCAmelCase_       :						int       ,       **lowerCAmelCase_       :						List[str]      ):
							if not is_tqdm_available():
														raise ImportError("""Accelerate's `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`."""      )
							__lowercase      :							List[str]				=     False
							if main_process_only:
														__lowercase      :							Optional[int]				=     PartialState().local_process_index == 0
							return _tqdm(*lowerCAmelCase_       ,       **lowerCAmelCase_       ,       disable=lowerCAmelCase_      )