__lowerCamelCase     :					Optional[Any]				  =						{0: [1, 2], 1: [0, 3], 2: [0], 3: [1], 4: [5, 6], 5: [4, 6], 6: [4, 5]}

__lowerCamelCase     :					List[str]				  =						{0: [1, 2, 3], 1: [0, 3], 2: [0], 3: [0, 1], 4: [], 5: []}



def       __SCREAMING_SNAKE_CASE    (   __UpperCamelCase       :			dict					,	__UpperCamelCase       :			int					,	__UpperCamelCase       :			list      )				->   list:







  """simple docstring"""





  SCREAMING_SNAKE_CASE__     				= True
  SCREAMING_SNAKE_CASE__     				= []

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

  return [vert, *connected_verts]



def       __SCREAMING_SNAKE_CASE    (   __UpperCamelCase       :			dict      )				->   list:







  """simple docstring"""





  SCREAMING_SNAKE_CASE__     				= len(__UpperCamelCase      )
  SCREAMING_SNAKE_CASE__     				= graph_size * [False]
  SCREAMING_SNAKE_CASE__     				= []

  for i in range(__UpperCamelCase      ):
    if not visited[i]:
      SCREAMING_SNAKE_CASE__     				= dfs(__UpperCamelCase					,	__UpperCamelCase					,	__UpperCamelCase      )
      components_list.append(__UpperCamelCase      )

  return components_list


if __name__ == "__main__":
   import doctest

   doctest.testmod()

import unittest

from transformers import is_torch_available, load_tool

from .test_tools_common import ToolTesterMixin


if is_torch_available():
   import torch







class __snake_case							(		unittest.TestCase  ,						lowerCamelCase_						):




   def       __a		(       self     :							Dict ):



     """simple docstring"""






     SCREAMING_SNAKE_CASE__     				= load_tool("""speech-to-text""" )
     self.tool.setup()




   def       __a		(       self     :							Tuple ):



     """simple docstring"""






     SCREAMING_SNAKE_CASE__     				= self.tool(torch.ones(30_00 ) )
     self.assertEqual(_lowercase			,      """ you""" )




   def       __a		(       self     :							Any ):



     """simple docstring"""






     SCREAMING_SNAKE_CASE__     				= self.tool(audio=torch.ones(30_00 ) )
     self.assertEqual(_lowercase			,      """ you""" )
