



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

a_    :  Union[str, Any]						  =		TypeVar('_T')





class  lowerCamelCase__	(    Generic[_T]):
     """simple docstring"""



     def __init__(self					,      __a = None     ):






           '''simple docstring'''



           lowerCamelCase             =		list(iterable or []     )
           lowerCamelCase             =		[]







     def __len__(self     ):






           '''simple docstring'''



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







     def __repr__(self     ):






           '''simple docstring'''



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







     def     _a   (self					,      __a     ):






           '''simple docstring'''



           self._stacka.append(__a     )







     def     _a   (self     ):






           '''simple docstring'''



           lowerCamelCase             =		self._stacka.pop
           lowerCamelCase             =		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()




from ..utils import DummyObject, requires_backends





class  lowerCamelCase__	(    metaclass=UpperCAmelCase_):
     """simple docstring"""



     _A      =      ['transformers', 'torch', 'note_seq']







     def __init__(self					,      *__a					,      **__a     ):






           '''simple docstring'''



           requires_backends(self					,      ["transformers", "torch", "note_seq"]     )







     @classmethod
     def     _a   (cls					,      *__a					,      **__a     ):






           '''simple docstring'''



           requires_backends(cls					,      ["transformers", "torch", "note_seq"]     )







     @classmethod
     def     _a   (cls					,      *__a					,      **__a     ):






           '''simple docstring'''



           requires_backends(cls					,      ["transformers", "torch", "note_seq"]     )