





"""simple docstring"""




from ..utils import DummyObject, requires_backends


class 			__UpperCamelCase							(		metaclass=UpperCAmelCase_		):
							lowerCamelCase  :   List[str]    =['''onnx''']






							def __init__(  self ,   *lowerCAmelCase__ ,   **lowerCAmelCase__ )      ->					str:
								requires_backends(self ,   ["onnx"] )






							@classmethod
							def        __a  (  cls ,   *lowerCAmelCase__ ,   **lowerCAmelCase__ )      ->					Any:
								requires_backends(cls ,   ["onnx"] )






							@classmethod
							def        __a  (  cls ,   *lowerCAmelCase__ ,   **lowerCAmelCase__ )      ->					str:
								requires_backends(cls ,   ["onnx"] )










from collections.abc import Iterable
from typing import Generic, TypeVar

UpperCamelCase    							=      TypeVar('_T')







class 		_A						( Generic[_T] ):

  def __init__(    self						:	int   ,				lowerCamelCase__						:	Iterable[_T] | None = None			):
     """simple docstring"""

     __UpperCamelCase	:			list[_T]					=					list(iterable or []			)
     __UpperCamelCase	:			list[_T]					=					[]

  def __len__(    self						:	str			):
     """simple docstring"""

     return len(self._stacka			) + len(self._stacka			)

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

     return f'Queue({tuple(self._stacka[::-1] + self._stacka			)})'

  def    a					(    self						:	Union[str, Any]   ,				lowerCamelCase__						:	_T			):
     """simple docstring"""

     self._stacka.append(lowerCamelCase__			)

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

     __UpperCamelCase	:			Any					=					self._stacka.pop
     __UpperCamelCase	:			int					=					self._stacka.append

     if not self._stacka:
        while self._stacka:
           stacka_append(stacka_pop()			)

     if not self._stacka:
        raise IndexError("""Queue is empty"""			)
     return self._stacka.pop()


if __name__ == "__main__":
       from doctest import testmod

       testmod()



