



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

a_						:     Optional[int]	     =		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 typing import TYPE_CHECKING

from ....utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


a_						:     int	     =		{'configuration_van': ['VAN_PRETRAINED_CONFIG_ARCHIVE_MAP', 'VanConfig']}


try:
     if not is_torch_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     a_						:     Dict	     =		[
         'VAN_PRETRAINED_MODEL_ARCHIVE_LIST',
         'VanForImageClassification',
         'VanModel',
         'VanPreTrainedModel',
     ]

if TYPE_CHECKING:
     from .configuration_van import VAN_PRETRAINED_CONFIG_ARCHIVE_MAP, VanConfig

     try:
          if not is_torch_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_van import (
              VAN_PRETRAINED_MODEL_ARCHIVE_LIST,
              VanForImageClassification,
              VanModel,
              VanPreTrainedModel,
          )

else:
     import sys

     a_						:     Union[str, Any]	     =		_LazyModule(__name__, globals()['__file__'], _import_structure)