




'''simple docstring'''

class __magic_name__:






						def __init__(   self						:						List[Any]					,   __UpperCamelCase						:						int       ):



									'''simple docstring'''






									snake_case__          =						data
									snake_case__          =						42
									snake_case__          =						42







def    snake_case__     (  a	)			->       None:





			'''simple docstring'''






			snake_case__          =						0
			snake_case__          =						x




def    snake_case__     (  a       ,      a	)			->       None:





			'''simple docstring'''






			snake_case__    ,			snake_case__          =						find_set(a	), find_set(a	)
			if x == y:
						return

			elif x.rank > y.rank:
						snake_case__          =						x
			else:
						snake_case__          =						y
						if x.rank == y.rank:
									y.rank += 1




def    snake_case__     (  a	)			->       Node:





			'''simple docstring'''






			if x != x.parent:
						snake_case__          =						find_set(x.parent	)
			return x.parent




def    snake_case__     (  a	)			->       set:





			'''simple docstring'''






			snake_case__          =						({0, 1, 2}, {3, 4, 5})
			for s in sets:
						if node.data in s:
									return s
			snake_case__          =						F"""{node.data} is not in {sets}"""
			raise ValueError(a	)




def    snake_case__     (  )			->       None:





			'''simple docstring'''






			snake_case__          =						[Node(a	) for i in range(6	)]
			for v in vertex:
						make_set(a	)

			union_set(vertex[0]       ,      vertex[1]	)
			union_set(vertex[1]       ,      vertex[2]	)
			union_set(vertex[3]       ,      vertex[4]	)
			union_set(vertex[3]       ,      vertex[5]	)

			for nodea in vertex:
						for nodea in vertex:
									if find_python_set(a	).isdisjoint(find_python_set(a	)	):
												assert find_set(a	) != find_set(a	)
									else:
												assert find_set(a	) == find_set(a	)


if __name__ == "__main__":
		test_disjoint_set()





'''simple docstring'''

import unittest
import warnings

from datasets.utils import experimental




@experimental
def    snake_case__     (  )			->       Union[str, Any]:





			'''simple docstring'''






			return "success"





class __magic_name__(						unittest.TestCase      ):






						def       __lowerCAmelCase(   self						:						List[Any]       ):



									'''simple docstring'''






									with warnings.catch_warnings(record=__UpperCamelCase       ) as w:
												warnings.simplefilter("""always"""       )
												self.assertEqual(dummy_function()					,   """success"""       )
									self.assertEqual(len(__UpperCamelCase       )					,   1       )