




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__lowerCamelCase   :						Optional[int]				=			{
    '''configuration_luke''': ['''LUKE_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''LukeConfig'''],
    '''tokenization_luke''': ['''LukeTokenizer'''],
}

try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	__lowerCamelCase   :						List[Any]				=			[
	    '''LUKE_PRETRAINED_MODEL_ARCHIVE_LIST''',
	    '''LukeForEntityClassification''',
	    '''LukeForEntityPairClassification''',
	    '''LukeForEntitySpanClassification''',
	    '''LukeForMultipleChoice''',
	    '''LukeForQuestionAnswering''',
	    '''LukeForSequenceClassification''',
	    '''LukeForTokenClassification''',
	    '''LukeForMaskedLM''',
	    '''LukeModel''',
	    '''LukePreTrainedModel''',
	]


if TYPE_CHECKING:
	from .configuration_luke import LUKE_PRETRAINED_CONFIG_ARCHIVE_MAP, LukeConfig
	from .tokenization_luke import LukeTokenizer

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_luke import (
		    LUKE_PRETRAINED_MODEL_ARCHIVE_LIST,
		    LukeForEntityClassification,
		    LukeForEntityPairClassification,
		    LukeForEntitySpanClassification,
		    LukeForMaskedLM,
		    LukeForMultipleChoice,
		    LukeForQuestionAnswering,
		    LukeForSequenceClassification,
		    LukeForTokenClassification,
		    LukeModel,
		    LukePreTrainedModel,
		)

else:
	import sys

	__lowerCamelCase   :						Optional[Any]				=			_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)









import sys
import turtle







def 		lowercase__   (		__A:	tuple[float, float]							,__A:	tuple[float, float]				):





					'''simple docstring'''






					return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2







def 		lowercase__   (		__A:	tuple[float, float]							,__A:	tuple[float, float]							,__A:	tuple[float, float]							,__A:	int							,):





					'''simple docstring'''






					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   :						Optional[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]))



