"""simple docstring"""
from typing import TYPE_CHECKING

# rely on isort to merge the imports
from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


SCREAMING_SNAKE_CASE__      						=  {
    "configuration_autoformer": [
        "AUTOFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "AutoformerConfig",
    ],
}

try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					SCREAMING_SNAKE_CASE__      						=  [
					    "AUTOFORMER_PRETRAINED_MODEL_ARCHIVE_LIST",
					    "AutoformerForPrediction",
					    "AutoformerModel",
					    "AutoformerPreTrainedModel",
					]


if TYPE_CHECKING:
					from .configuration_autoformer import (
					    AUTOFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP,
					    AutoformerConfig,
					)

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_autoformer import (
										    AUTOFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
										    AutoformerForPrediction,
										    AutoformerModel,
										    AutoformerPreTrainedModel,
										)

else:
					import sys

					SCREAMING_SNAKE_CASE__      						=  _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)



"""simple docstring"""
import math





def    lowerCAmelCase__    (			_UpperCamelCase       :				int					)					->				bool:





						"""simple docstring"""






						return math.sqrt(_UpperCamelCase					) * math.sqrt(_UpperCamelCase					) == num





def    lowerCAmelCase__    (			_UpperCamelCase       :				int					)					->				bool:





						"""simple docstring"""






						snake_case								=			0
						snake_case								=			n
						while left <= right:
												snake_case								=			(left + right) // 2
												if mid**2 == n:
																		return True
												elif mid**2 > n:
																		snake_case								=			mid - 1
												else:
																		snake_case								=			mid + 1
						return False


if __name__ == "__main__":
					import doctest

					doctest.testmod()


