'''simple docstring'''




import sys
import turtle






def __lowerCAmelCase (							UpperCamelCase__				,  UpperCamelCase__				)	->    Tuple:
    return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2






def __lowerCAmelCase (							UpperCamelCase__				,  UpperCamelCase__				,  UpperCamelCase__				,  UpperCamelCase__				,  )	->    Any:
    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>"
    )
  __UpperCAmelCase     							=turtle.Turtle()
  my_pen.ht()
  my_pen.speed(5)
  my_pen.pencolor("red")

  __UpperCAmelCase     							=[(-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]))



from typing import TYPE_CHECKING

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


lowerCamelCase           =					{
    '''configuration_mvp''': ['''MVP_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''MvpConfig''', '''MvpOnnxConfig'''],
    '''tokenization_mvp''': ['''MvpTokenizer'''],
}

try:
       if not is_tokenizers_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       lowerCamelCase           =					['''MvpTokenizerFast''']

try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       lowerCamelCase           =					[
           '''MVP_PRETRAINED_MODEL_ARCHIVE_LIST''',
           '''MvpForCausalLM''',
           '''MvpForConditionalGeneration''',
           '''MvpForQuestionAnswering''',
           '''MvpForSequenceClassification''',
           '''MvpModel''',
           '''MvpPreTrainedModel''',
       ]

if TYPE_CHECKING:
       from .configuration_mvp import MVP_PRETRAINED_CONFIG_ARCHIVE_MAP, MvpConfig, MvpOnnxConfig
       from .tokenization_mvp import MvpTokenizer

       try:
              if not is_tokenizers_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .tokenization_mvp_fast import MvpTokenizerFast

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_mvp import (
                  MVP_PRETRAINED_MODEL_ARCHIVE_LIST,
                  MvpForCausalLM,
                  MvpForConditionalGeneration,
                  MvpForQuestionAnswering,
                  MvpForSequenceClassification,
                  MvpModel,
                  MvpPreTrainedModel,
              )

else:
       import sys

       lowerCamelCase           =					_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)
