






import sys
import turtle
def 						_a    (      a :tuple[float, float]	,							a :tuple[float, float] )							->			tuple[float, float]:
 return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2
def 						_a    (      a :tuple[float, float]	,							a :tuple[float, float]	,							a :tuple[float, float]	,							a :int	,							)							->			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(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__				   =		[(-175, -125), (0, 175), (175, -125)]  # vertices of triangle
     triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))








import pytest

from datasets import inspect_metric, list_metrics, load_metric







@pytest.fixture
def 	_a      (						SCREAMING_SNAKE_CASE_							:				Optional[Any]     ):
					monkeypatch.setattr("datasets.utils.deprecation_utils._emitted_deprecation_warnings"      ,      set()     )







@pytest.fixture
def 	_a      (						SCREAMING_SNAKE_CASE_							:				List[Any]     ):
					class 			a__    :






											def __init__(   self		,			_A			):




																"""simple docstring"""



																__lowerCAmelCase				   =       metric_id






					class 			a__    :
											_a							:    Optional[int]					=    [MetricMock(snake_case__      ) for metric_id in ["""accuracy""", """mse""", """precision""", """codeparrot/apps_metric"""]]






											def 				__SCREAMING_SNAKE_CASE(   self			):




																"""simple docstring"""



																return self._metrics






					monkeypatch.setattr("datasets.inspect.huggingface_hub"      ,      HfhMock()     )







@pytest.mark.parametrize(
    "func, args"      ,      [(load_metric, ("metrics/mse",)), (list_metrics, ()), (inspect_metric, ("metrics/mse", "tmp_path"))]     )
def 	_a      (						SCREAMING_SNAKE_CASE_							:				Tuple      ,      SCREAMING_SNAKE_CASE_							:				List[str]      ,      SCREAMING_SNAKE_CASE_							:				int      ,      SCREAMING_SNAKE_CASE_							:				Optional[int]      ,      SCREAMING_SNAKE_CASE_							:				Optional[int]     ):
					if "tmp_path" in args:
										__lowerCAmelCase				   =       tuple(arg if arg != "tmp_path" else tmp_path for arg in args     )
					with pytest.warns(SCREAMING_SNAKE_CASE_      ,      match="https://huggingface.co/docs/evaluate"     ):
										func(*SCREAMING_SNAKE_CASE_     )




