


"""simple docstring"""

import sys
import turtle


def lowerCAmelCase_		(				UpperCamelCase__	: str				,   UpperCamelCase__	: Union[str, Any] ):






 """simple docstring"""







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


def lowerCAmelCase_		(				UpperCamelCase__	: Tuple				,   UpperCamelCase__	: List[str]				,   UpperCamelCase__	: Tuple				,   UpperCamelCase__	: List[Any]				,   ):






 """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(_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>"
              )
       UpperCAmelCase__  							=turtle.Turtle()
       my_pen.ht()
       my_pen.speed(5)
       my_pen.pencolor("red")

       UpperCAmelCase__  							=[(-175, -125), (0, 175), (175, -125)]  # vertices of triangle
       triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))




"""simple docstring"""

from typing import TYPE_CHECKING

from ....utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


UpperCAmelCase__  							={"configuration_van": ["VAN_PRETRAINED_CONFIG_ARCHIVE_MAP", "VanConfig"]}


try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       UpperCAmelCase__  							=[
           "VAN_PRETRAINED_MODEL_ARCHIVE_LIST",
           "VanForImageClassification",
           "VanModel",
           "VanPreTrainedModel",
       ]

if TYPE_CHECKING:
       from .configuration_van import VAN_PRETRAINED_CONFIG_ARCHIVE_MAP, VanConfig

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_van import (
                  VAN_PRETRAINED_MODEL_ARCHIVE_LIST,
                  VanForImageClassification,
                  VanModel,
                  VanPreTrainedModel,
              )

else:
       import sys

       UpperCAmelCase__  							=_LazyModule(__name__, globals()["__file__"], _import_structure)
