





from __future__ import annotations

from collections.abc import Iterator
from typing import Any

class      A_	:
	def __init__(   self							, _A		):






				'''simple docstring'''







				UpperCAmelCase       		=    data
				UpperCAmelCase       		=    None







	def __str__(   self		):






				'''simple docstring'''







				return F"""{self.data}"""

class      A_	:
	def __init__(   self		):






				'''simple docstring'''







				UpperCAmelCase       		=    None
				UpperCAmelCase       		=    None
	def __iter__(   self		):






				'''simple docstring'''







				UpperCAmelCase       		=    self.front
				while node:
							yield node.data
							UpperCAmelCase       		=    node.next
	def __len__(   self		):






				'''simple docstring'''







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






				'''simple docstring'''







				return " <- ".join(str(_A		) for item in self		)
	def 					_lowercase    (   self		):






				'''simple docstring'''







				return len(self		) == 0
	def 					_lowercase    (   self							, _A		):






				'''simple docstring'''







				UpperCAmelCase       		=    Node(_A		)
				if self.is_empty():
							UpperCAmelCase       		=    UpperCAmelCase       		=    node
				else:
							assert isinstance(self.rear							, _A		)
							UpperCAmelCase       		=    node
							UpperCAmelCase       		=    node
	def 					_lowercase    (   self		):






				'''simple docstring'''







				if self.is_empty():
							raise IndexError('''dequeue from empty queue'''		)
				assert isinstance(self.front							, _A		)
				UpperCAmelCase       		=    self.front
				UpperCAmelCase       		=    self.front.next
				if self.front is None:
							UpperCAmelCase       		=    None
				return node.data







	def 					_lowercase    (   self		):






				'''simple docstring'''







				UpperCAmelCase       		=    UpperCAmelCase       		=    None


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    :   Tuple          =       {
    "configuration_mobilevitv2": [
        "MOBILEVITV2_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "MobileViTV2Config",
        "MobileViTV2OnnxConfig",
    ],
}


try:
				if not is_torch_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				__A    :   List[str]          =       [
				    "MOBILEVITV2_PRETRAINED_MODEL_ARCHIVE_LIST",
				    "MobileViTV2ForImageClassification",
				    "MobileViTV2ForSemanticSegmentation",
				    "MobileViTV2Model",
				    "MobileViTV2PreTrainedModel",
				]

if TYPE_CHECKING:
				from .configuration_mobilevitva import (
				    MOBILEVITV2_PRETRAINED_CONFIG_ARCHIVE_MAP,
				    MobileViTVaConfig,
				    MobileViTVaOnnxConfig,
				)

				try:
								if not is_torch_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .modeling_mobilevitva import (
								    MOBILEVITV2_PRETRAINED_MODEL_ARCHIVE_LIST,
								    MobileViTVaForImageClassification,
								    MobileViTVaForSemanticSegmentation,
								    MobileViTVaModel,
								    MobileViTVaPreTrainedModel,
								)

else:
				import sys

				__A    :   Tuple          =       _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)



