code: 
  def 						lowerCAmelCase_		(      _snake_case   :						int   ,     _snake_case   :						list[tuple[int, int, int]]     )       ->	list[tuple[int, int, int]]:
  
  
  
  
  
  
  
  	'''simple docstring'''
  
  
  	__magic_name__	:	Union[str, Any]			     =  sorted(_snake_case   ,     key=lambda _snake_case     : edge[2]     )
  
  	__magic_name__	:	Union[str, Any]			     =  list(range(_snake_case     )     )
  
  	def find_parent(_snake_case   :						Dict     ):
  		if i != parent[i]:
  			__magic_name__	:	Any			     =  find_parent(parent[i]     )
  		return parent[i]
  
  	__magic_name__	:	List[str]			     =  0
  	__magic_name__	:	int			     =  []
  
  	for edge in edges:
  		__magic_name__	:	Any			     =  find_parent(edge[0]     )
  		__magic_name__	:	int			     =  find_parent(edge[1]     )
  		if parent_a != parent_b:
  			minimum_spanning_tree_cost += edge[2]
  			minimum_spanning_tree.append(_snake_case     )
  			__magic_name__	:	Optional[int]			     =  parent_b
  
  	return minimum_spanning_tree
  
  
  if __name__ == "__main__":  # pragma: no cover
  				snake_case   ,snake_case				:	int							   =						list(map(int, input().strip().split()))
  				snake_case				:	int							   =						[]
  
  				for _ in range(num_edges):
  								snake_case   ,snake_case   ,snake_case				:	Dict							   =						(int(x) for x in input().strip().split())
  								edges.append((nodea, nodea, cost))
  
  				kruskal(num_nodes, edges)
  
style_context: 
  from typing import TYPE_CHECKING
  
  from ...utils import (
      OptionalDependencyNotAvailable,
      _LazyModule,
      is_torch_available,
      is_vision_available,
  )
  
  
  snake_case				:	Optional[int]							   =						{
      "configuration_mobilevitv2": [
          "MOBILEVITV2_PRETRAINED_CONFIG_ARCHIVE_MAP",
          "MobileViTV2Config",
          "MobileViTV2OnnxConfig",
      ],
  }
  
  
  try:
  				if not is_torch_available():
  								raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
  				pass
  else:
  				snake_case				:	Optional[int]							   =						[
  				    "MOBILEVITV2_PRETRAINED_MODEL_ARCHIVE_LIST",
  				    "MobileViTV2ForImageClassification",
  				    "MobileViTV2ForSemanticSegmentation",
  				    "MobileViTV2Model",
  				    "MobileViTV2PreTrainedModel",
  				]
  
  if TYPE_CHECKING:
  				from .configuration_mobilevitva import (
  				    MOBILEVITV2_PRETRAINED_CONFIG_ARCHIVE_MAP,
  				    MobileViTVaConfig,
  				    MobileViTVaOnnxConfig,
  				)
  
  				try:
  								if not is_torch_available():
  												raise OptionalDependencyNotAvailable()
  				except OptionalDependencyNotAvailable:
  								pass
  				else:
  								from .modeling_mobilevitva import (
  								    MOBILEVITV2_PRETRAINED_MODEL_ARCHIVE_LIST,
  								    MobileViTVaForImageClassification,
  								    MobileViTVaForSemanticSegmentation,
  								    MobileViTVaModel,
  								    MobileViTVaPreTrainedModel,
  								)
  
  else:
  				import sys
  
  				snake_case				:	Tuple							   =						_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
  