
'''simple docstring'''







from __future__ import annotations

from collections.abc import Iterator
from typing import Any







class 		snake_case_       :



   """simple docstring"""





   def __init__( self			,   UpperCamelCase):
          lowerCamelCase__				   =      data
          lowerCamelCase__				   =      None







   def __str__( self):
          return f"""{self.data}"""







class 		snake_case_       :



   """simple docstring"""





   def __init__( self):
          lowerCamelCase__				   =      None
          lowerCamelCase__				   =      None







   def __iter__( self):
          lowerCamelCase__				   =      self.front
          while node:
                 yield node.data
                 lowerCamelCase__				   =      node.next







   def __len__( self):
          return len(tuple(iter(self)))







   def __str__( self):
          return " <- ".join(str(UpperCamelCase) for item in self)







   def     __UpperCAmelCase      ( self):
          return len(self) == 0







   def     __UpperCAmelCase      ( self			,   UpperCamelCase):
          lowerCamelCase__				   =      Node(UpperCamelCase)
          if self.is_empty():
                 lowerCamelCase__				   =      lowerCamelCase__				   =      node
          else:
                 assert isinstance(self.rear			,   UpperCamelCase)
                 lowerCamelCase__				   =      node
                 lowerCamelCase__				   =      node







   def     __UpperCAmelCase      ( self):
          if self.is_empty():
                 raise IndexError("dequeue from empty queue")
          assert isinstance(self.front			,   UpperCamelCase)
          lowerCamelCase__				   =      self.front
          lowerCamelCase__				   =      self.front.next
          if self.front is None:
                 lowerCamelCase__				   =      None
          return node.data







   def     __UpperCAmelCase      ( self):
          lowerCamelCase__				   =      lowerCamelCase__				   =      None


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

    testmod()



'''simple docstring'''







from ..utils import DummyObject, requires_backends







class 		snake_case_       (						metaclass=A__						):



   """simple docstring"""





   __lowerCAmelCase	:							List[str]								=['''torch''', '''librosa''']







   def __init__( self			,   *UpperCamelCase			,   **UpperCamelCase):
          requires_backends(self			,   ["torch", "librosa"])







   @classmethod
   def     __UpperCAmelCase      ( cls			,   *UpperCamelCase			,   **UpperCamelCase):
          requires_backends(cls			,   ["torch", "librosa"])







   @classmethod
   def     __UpperCAmelCase      ( cls			,   *UpperCamelCase			,   **UpperCamelCase):
          requires_backends(cls			,   ["torch", "librosa"])







class 		snake_case_       (						metaclass=A__						):



   """simple docstring"""





   __lowerCAmelCase	:							Union[str, Any]								=['''torch''', '''librosa''']







   def __init__( self			,   *UpperCamelCase			,   **UpperCamelCase):
          requires_backends(self			,   ["torch", "librosa"])







   @classmethod
   def     __UpperCAmelCase      ( cls			,   *UpperCamelCase			,   **UpperCamelCase):
          requires_backends(cls			,   ["torch", "librosa"])







   @classmethod
   def     __UpperCAmelCase      ( cls			,   *UpperCamelCase			,   **UpperCamelCase):
          requires_backends(cls			,   ["torch", "librosa"])

