

'''simple docstring'''


lowerCAmelCase__      				=			{0: [1, 2], 1: [0, 3], 2: [0], 3: [1], 4: [5, 6], 5: [4, 6], 6: [4, 5]}

lowerCAmelCase__      				=			{0: [1, 2, 3], 1: [0, 3], 2: [0], 3: [0, 1], 4: [], 5: []}







def     SCREAMING_SNAKE_CASE(	UpperCamelCase ,UpperCamelCase ,UpperCamelCase	)     ->     list:
	UpperCAmelCase_		:   Any													=       True
	UpperCAmelCase_		:   Optional[Any]													=       []

	for neighbour in graph[vert]:
		if not visited[neighbour]:
			connected_verts += dfs(UpperCamelCase ,UpperCamelCase ,UpperCamelCase	)

	return [vert, *connected_verts]







def     SCREAMING_SNAKE_CASE(	UpperCamelCase	)     ->     list:
	UpperCAmelCase_		:   Any													=       len(UpperCamelCase	)
	UpperCAmelCase_		:   Dict													=       graph_size * [False]
	UpperCAmelCase_		:   List[str]													=       []

	for i in range(UpperCamelCase	):
		if not visited[i]:
			UpperCAmelCase_		:   Optional[Any]													=       dfs(UpperCamelCase ,UpperCamelCase ,UpperCamelCase	)
			components_list.append(UpperCamelCase	)

	return components_list


if __name__ == "__main__":
						import doctest

						doctest.testmod()









'''simple docstring'''


import unittest

from transformers import is_torch_available, load_tool

from .test_tools_common import ToolTesterMixin


if is_torch_available():
						import torch



class        lowercase    (	unittest.TestCase,       a_			):


							def     _snake_case				(      self)				->					Optional[int]:
								UpperCAmelCase_		:   int													=       load_tool('speech-to-text')
								self.tool.setup()


							def     _snake_case				(      self)				->					Any:
								UpperCAmelCase_		:   str													=       self.tool(torch.ones(3000))
								self.assertEqual(_snake_case     ,      ' you')





							def     _snake_case				(      self)				->					str:
								UpperCAmelCase_		:   List[Any]													=       self.tool(audio=torch.ones(3000))
								self.assertEqual(_snake_case     ,      ' you')






