



from manim import *






class 		lowercase						(			snake_case__):






	"""simple docstring"""


	def   _SCREAMING_SNAKE_CASE		(     self     :						Optional[int]					)      ->			Optional[int]:
							UpperCAmelCase_=       Rectangle(height=0.5						,  width=0.5					)
							UpperCAmelCase_=       Rectangle(height=0.46						,  width=0.46					).set_stroke(width=0					)

							UpperCAmelCase_=       [mem.copy() for i in range(6					)]
							UpperCAmelCase_=       [mem.copy() for i in range(6					)]
							UpperCAmelCase_=       VGroup(*__UpperCAmelCase					).arrange(__UpperCAmelCase						,  buff=0					)
							UpperCAmelCase_=       VGroup(*__UpperCAmelCase					).arrange(__UpperCAmelCase						,  buff=0					)
							UpperCAmelCase_=       VGroup(__UpperCAmelCase						,  __UpperCAmelCase					).arrange(__UpperCAmelCase						,  buff=0					)
							UpperCAmelCase_=       Text("""CPU"""						,  font_size=24					)
							UpperCAmelCase_=       Group(__UpperCAmelCase						,  __UpperCAmelCase					).arrange(__UpperCAmelCase						,  buff=0.5						,  aligned_edge=__UpperCAmelCase					)
							cpu.move_to([-2.5, -0.5, 0]					)
							self.add(__UpperCAmelCase					)

							UpperCAmelCase_=       [mem.copy() for i in range(1					)]
							UpperCAmelCase_=       VGroup(*__UpperCAmelCase					).arrange(__UpperCAmelCase						,  buff=0					)
							UpperCAmelCase_=       Text("""GPU"""						,  font_size=24					)
							UpperCAmelCase_=       Group(__UpperCAmelCase						,  __UpperCAmelCase					).arrange(__UpperCAmelCase						,  buff=0.5						,  aligned_edge=__UpperCAmelCase					)
							gpu.align_to(__UpperCAmelCase						,  __UpperCAmelCase					)
							gpu.set_x(gpu.get_x() - 1					)

							self.add(__UpperCAmelCase					)

							UpperCAmelCase_=       [mem.copy() for i in range(6					)]
							UpperCAmelCase_=       VGroup(*__UpperCAmelCase					).arrange(__UpperCAmelCase						,  buff=0					)

							UpperCAmelCase_=       Text("""Model"""						,  font_size=24					)
							UpperCAmelCase_=       Group(__UpperCAmelCase						,  __UpperCAmelCase					).arrange(__UpperCAmelCase						,  buff=0.5						,  aligned_edge=__UpperCAmelCase					)
							model.move_to([3, -1.0, 0]					)

							self.play(
							    Create(__UpperCAmelCase						,  run_time=1					)						,  Create(__UpperCAmelCase						,  run_time=1					)						,  Create(__UpperCAmelCase						,  run_time=1					)						,  )

							UpperCAmelCase_=       MarkupText(
							    F"""First, an empty model skeleton is loaded\ninto <span fgcolor='{YELLOW}'>memory</span> without using much RAM."""						,  font_size=24						,  )

							UpperCAmelCase_=       Square(side_length=2.2					)
							key.move_to([-5, 2, 0]					)

							UpperCAmelCase_=       MarkupText(
							    F"""<b>Key:</b>\n\n<span fgcolor='{YELLOW}'>●</span> Empty Model"""						,  font_size=18						,  )

							key_text.move_to([-5, 2.4, 0]					)

							step_a.move_to([2, 2, 0]					)
							self.play(Write(__UpperCAmelCase						,  run_time=2.5					)						,  Write(__UpperCAmelCase					)						,  Write(__UpperCAmelCase					)					)

							self.add(__UpperCAmelCase					)

							UpperCAmelCase_=       []
							UpperCAmelCase_=       []
							UpperCAmelCase_=       []
							for i, rect in enumerate(__UpperCAmelCase					):
													UpperCAmelCase_=       Rectangle(height=0.46						,  width=0.46					).set_stroke(width=0.0					).set_fill(__UpperCAmelCase						,  opacity=0.7					)
													cpu_target.move_to(__UpperCAmelCase					)
													cpu_target.generate_target()
													UpperCAmelCase_=       0.46 / 4
													UpperCAmelCase_=       0.46 / 3

													if i == 0:
																			cpu_target.target.next_to(cpu_left_col_base[0].get_corner(DOWN + LEFT					)						,  buff=0.02						,  direction=__UpperCAmelCase					)
																			cpu_target.target.set_x(cpu_target.target.get_x() + 0.1					)
													elif i == 3:
																			cpu_target.target.next_to(cpu_targs[0].target						,  direction=__UpperCAmelCase						,  buff=0.0					)
													else:
																			cpu_target.target.next_to(cpu_targs[i - 1].target						,  direction=__UpperCAmelCase						,  buff=0.0					)
													cpu_targs.append(__UpperCAmelCase					)

													first_animations.append(rect.animate(run_time=0.5					).set_stroke(__UpperCAmelCase					)					)
													second_animations.append(MoveToTarget(__UpperCAmelCase						,  run_time=1.5					)					)

							self.play(*__UpperCAmelCase					)
							self.play(*__UpperCAmelCase					)

							self.wait()









import pytest

import datasets


# Import fixture modules as plugins
__A       =						['''tests.fixtures.files''', '''tests.fixtures.hub''', '''tests.fixtures.fsspec''']



def 	__a					(   lowerCAmelCase_       : Optional[Any]      ,lowerCAmelCase_       : Any    )				->			Tuple:






						'''simple docstring'''



						for item in items:
												if any(marker in item.keywords for marker in ["""integration""", """unit"""]    ):
																		continue
												item.add_marker(pytest.mark.unit    )



def 	__a					(   lowerCAmelCase_       : Tuple    )				->			Optional[Any]:






						'''simple docstring'''



						config.addinivalue_line("""markers"""      ,"""torchaudio_latest: mark test to run with torchaudio>=0.12"""    )



@pytest.fixture(autouse=lowerCAmelCase_    )
def 	__a					(   lowerCAmelCase_       : List[str]      ,lowerCAmelCase_       : List[str]    )				->			int:






						'''simple docstring'''



						UpperCAmelCase_=       tmp_path_factory.getbasetemp() / """cache"""
						UpperCAmelCase_=       test_hf_cache_home / """datasets"""
						UpperCAmelCase_=       test_hf_cache_home / """metrics"""
						UpperCAmelCase_=       test_hf_cache_home / """modules"""
						monkeypatch.setattr("""datasets.config.HF_DATASETS_CACHE"""      ,str(lowerCAmelCase_    )    )
						monkeypatch.setattr("""datasets.config.HF_METRICS_CACHE"""      ,str(lowerCAmelCase_    )    )
						monkeypatch.setattr("""datasets.config.HF_MODULES_CACHE"""      ,str(lowerCAmelCase_    )    )
						UpperCAmelCase_=       test_hf_datasets_cache / """downloads"""
						monkeypatch.setattr("""datasets.config.DOWNLOADED_DATASETS_PATH"""      ,str(lowerCAmelCase_    )    )
						UpperCAmelCase_=       test_hf_datasets_cache / """downloads""" / """extracted"""
						monkeypatch.setattr("""datasets.config.EXTRACTED_DATASETS_PATH"""      ,str(lowerCAmelCase_    )    )



@pytest.fixture(autouse=lowerCAmelCase_      ,scope="""session"""    )
def 	__a					(   )				->			Optional[int]:






						'''simple docstring'''



						datasets.disable_progress_bar()



@pytest.fixture(autouse=lowerCAmelCase_    )
def 	__a					(   lowerCAmelCase_       : int    )				->			str:






						'''simple docstring'''



						monkeypatch.setattr("""datasets.config.HF_UPDATE_DOWNLOAD_COUNTS"""      ,lowerCAmelCase_    )



@pytest.fixture
def 	__a					(   lowerCAmelCase_       : List[str]    )				->			Union[str, Any]:






						'''simple docstring'''



						monkeypatch.setattr("""sqlalchemy.util.deprecations.SILENCE_UBER_WARNING"""      ,lowerCAmelCase_    )




