



'''simple docstring'''




import sys
import turtle



def       __lowerCamelCase  (					_lowercase	,				_lowercase		)      ->			tuple[float, float]:
							return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2



def       __lowerCamelCase  (					_lowercase	,				_lowercase	,				_lowercase	,				_lowercase	,				)      ->			None:
							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(__lowerCAmelCase	,				get_mid(__lowerCAmelCase	,				__lowerCAmelCase		)	,				get_mid(__lowerCAmelCase	,				__lowerCAmelCase		)	,				depth - 1		)
							triangle(__lowerCAmelCase	,				get_mid(__lowerCAmelCase	,				__lowerCAmelCase		)	,				get_mid(__lowerCAmelCase	,				__lowerCAmelCase		)	,				depth - 1		)
							triangle(__lowerCAmelCase	,				get_mid(__lowerCAmelCase	,				__lowerCAmelCase		)	,				get_mid(__lowerCAmelCase	,				__lowerCAmelCase		)	,				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>"""
														)
							a   :			Optional[int]					  =    turtle.Turtle()
							my_pen.ht()
							my_pen.speed(5)
							my_pen.pencolor("""red""")

							a   :			Tuple					  =    [(-1_7_5, -1_2_5), (0, 1_7_5), (1_7_5, -1_2_5)]  # vertices of triangle
							triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))






# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
A__								=						abspath(join(dirname(dirname(dirname(__file__))), '''src'''))
sys.path.insert(1, git_repo_path)


# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action='''ignore''', category=FutureWarning)



def 			_lowerCAmelCase       (					__lowerCAmelCase      )   ->					str:


				"""simple docstring"""

				from transformers.testing_utils import pytest_addoption_shared

				pytest_addoption_shared(__lowerCAmelCase      )





def 			_lowerCAmelCase       (					__lowerCAmelCase      )   ->					List[Any]:


				"""simple docstring"""

				from transformers.testing_utils import pytest_terminal_summary_main

				snake_case__	:      Dict     		=	terminalreporter.config.getoption('''--make-reports'''      )
				if make_reports:
								pytest_terminal_summary_main(__lowerCAmelCase  ,  id=__lowerCAmelCase      )

