




'''simple docstring'''






import unittest
from pathlib import Path
from tempfile import TemporaryDirectory
from unittest.mock import Mock, patch

import diffusers.utils.hub_utils



class    A						(					unittest.TestCase						):




				'''simple docstring'''





				@patch("diffusers.utils.hub_utils.get_full_repo_name"     )
				def 			a_			(self					,    _UpperCAmelCase     )      ->			Dict:
							__UpperCamelCase :     Tuple										=  'full_repo_name'
							with TemporaryDirectory() as tmpdir:
										# Dummy args values
										__UpperCamelCase :     str										=  Mock()
										__UpperCamelCase :     List[str]										=  tmpdir
										__UpperCamelCase :     str										=  0
										__UpperCamelCase :     Any										=  'hub_token'
										__UpperCamelCase :     Tuple										=  'dataset_name'
										__UpperCamelCase :     Dict										=  0.01
										__UpperCamelCase :     int										=  1_0_0_0_0_0
										__UpperCamelCase :     Any										=  1_0_0_0_0
										__UpperCamelCase :     Dict										=  0.01
										__UpperCamelCase :     Union[str, Any]										=  0.02
										__UpperCamelCase :     Any										=  0.03
										__UpperCamelCase :     List[Any]										=  0.0_005
										__UpperCamelCase :     Optional[Any]										=  0.000_001
										__UpperCamelCase :     List[Any]										=  1
										__UpperCamelCase :     Optional[Any]										=  1_0
										__UpperCamelCase :     Dict										=  0.001
										__UpperCamelCase :     int										=  0.1
										__UpperCamelCase :     str										=  0.2
										__UpperCamelCase :     Dict										=  True

										# Model card mush be rendered and saved
										diffusers.utils.hub_utils.create_model_card(_SCREAMING_SNAKE_CASE					,    model_name="model_name"     )
										self.assertTrue((Path(_SCREAMING_SNAKE_CASE     ) / "README.md").is_file()     )





"""simple docstring"""







def        __lowerCAmelCase							(_UpperCamelCase			,    _UpperCamelCase						):
	__lowerCAmelCase     :		Any		     = sorted(_UpperCamelCase			,    key=lambda _UpperCamelCase						: edge[2]						)

	__lowerCAmelCase     :		Union[str, Any]		     = list(range(_UpperCamelCase						)						)

	def find_parent(_UpperCamelCase						):
		if i != parent[i]:
			__lowerCAmelCase     :		int		     = find_parent(parent[i]						)
		return parent[i]

	__lowerCAmelCase     :		Optional[Any]		     = 0
	__lowerCAmelCase     :		List[str]		     = []

	for edge in edges:
		__lowerCAmelCase     :		List[str]		     = find_parent(edge[0]						)
		__lowerCAmelCase     :		Optional[Any]		     = find_parent(edge[1]						)
		if parent_a != parent_b:
			minimum_spanning_tree_cost += edge[2]
			minimum_spanning_tree.append(_UpperCamelCase						)
			__lowerCAmelCase     :		Optional[Any]		     = parent_b

	return minimum_spanning_tree


if __name__ == "__main__":  # pragma: no cover
							lowerCamelCase__   ,		lowerCamelCase__     =						list(map(int, input().strip().split()))
							lowerCamelCase__     =						[]

							for _ in range(num_edges):
														lowerCamelCase__   ,		lowerCamelCase__   ,		lowerCamelCase__     =						(int(x) for x in input().strip().split())
														edges.append((nodea, nodea, cost))

							kruskal(num_nodes, edges)