
import unittest

from transformers import is_torch_available, load_tool

from .test_tools_common import ToolTesterMixin


if is_torch_available():
	import torch

class        UpperCamelCase__(    unittest.TestCase						,						lowerCAmelCase__	):

	"""simple docstring"""

	def        _a					(      self				:			List[Any] ):
			"""simple docstring"""





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







	def        _a					(      self				:			int ):
			"""simple docstring"""





			A				=self.tool(torch.ones(30_00 ) )
			self.assertEqual(snake_case__							,			" you" )







	def        _a					(      self				:			Tuple ):
			"""simple docstring"""





			A				=self.tool(audio=torch.ones(30_00 ) )
			self.assertEqual(snake_case__							,			" you" )






from __future__ import annotations

from typing import Any

class        UpperCamelCase__:

	"""simple docstring"""

	def __init__(      self				:			Dict							,			snake_case__				:			Any							,			snake_case__				:			Any ):  # noqa: A002
			"""simple docstring"""





			A				=item
			A				=next


class        UpperCamelCase__:

	"""simple docstring"""

	def __init__(      self				:			Optional[Any] ):
			"""simple docstring"""





			A				=None
			A				=0







	def        _a					(      self				:			str							,			snake_case__				:			Any ):
			"""simple docstring"""





			A				=Node(snake_case__							,			self.head )
			self.size += 1







	def        _a					(      self				:			Dict ):
			"""simple docstring"""





			if self.head is None:
					return None
			else:
					A				=self.head.item
					A				=self.head.next
					self.size -= 1
					return item







	def        _a					(      self				:			Any ):
			"""simple docstring"""





			return self.head is None







	def __str__(      self				:			Dict ):
			"""simple docstring"""





			if self.is_empty():
					return ""
			else:
					A				=self.head
					A				=""
					A				=[]
					while iterate:
							item_list.append(str(iterate.item ) )
							A				=iterate.next

					A				=" --> ".join(snake_case__ )

					return item_str







	def __len__(      self				:			Union[str, Any] ):
			"""simple docstring"""





			return self.size




