





def 	__UpperCamelCase (	lowercase__		:				Tuple						)		->					List[str]:
    '''simple docstring'''





    if not isinstance(lowercase__						,			lowercase__						):
        raise ValueError("""Input series is not valid, valid series - [2, 4, 8]"""						)
    if len(lowercase__						) == 0:
        raise ValueError("""Input list must be a non empty list"""						)
    if len(lowercase__						) == 1:
        return True
    try:
        lowerCAmelCase_    :		Optional[int] 						=      series[1] / series[0]
        for index in range(len(lowercase__						) - 1						):
            if series[index + 1] / series[index] != common_ratio:
                return False
    except ZeroDivisionError:
        return False
    return True
def 	__UpperCamelCase (	lowercase__		:				Dict						)		->					List[Any]:
    '''simple docstring'''





    if not isinstance(lowercase__						,			lowercase__						):
        raise ValueError("""Input series is not valid, valid series - [2, 4, 8]"""						)
    if len(lowercase__						) == 0:
        raise ValueError("""Input list must be a non empty list"""						)
    lowerCAmelCase_    :		str 						=      1
    for value in series:
        answer *= value
    return pow(lowercase__						,			1 / len(lowercase__						)						)


if __name__ == "__main__":
  import doctest

  doctest.testmod()









from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


_snake_case				= {"""configuration_dinat""": ["""DINAT_PRETRAINED_CONFIG_ARCHIVE_MAP""", """DinatConfig"""]}


try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  _snake_case				= [
      """DINAT_PRETRAINED_MODEL_ARCHIVE_LIST""",
      """DinatForImageClassification""",
      """DinatModel""",
      """DinatPreTrainedModel""",
      """DinatBackbone""",
  ]

if TYPE_CHECKING:
  from .configuration_dinat import DINAT_PRETRAINED_CONFIG_ARCHIVE_MAP, DinatConfig

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_dinat import (
        DINAT_PRETRAINED_MODEL_ARCHIVE_LIST,
        DinatBackbone,
        DinatForImageClassification,
        DinatModel,
        DinatPreTrainedModel,
    )

else:
  import sys

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






