def      lowercase_							(     _lowerCamelCase				:			int):
    lowercase__					:  Dict          =							1
    lowercase__					:  Union[str, Any]          =							0
    lowercase__					:  int          =							1
    lowercase__					:  Tuple          =							1
    lowercase__					:  Optional[Any]          =							3
    lowercase__					:  int          =							3
    lowercase__					:  List[str]          =							limit
    lowercase__					:  str          =							0

    lowercase__					:  Any          =							""
    while counter != decimal + 1:
        if 4 * q + r - t < n * t:
            result += str(_lowerCamelCase)
            if counter == 0:
                result += "."

            if decimal == counter:
                break

            counter += 1
            lowercase__					:  List[str]          =							10 * (r - n * t)
            lowercase__					:  Optional[int]          =							((10 * (3 * q + r)) // t) - 10 * n
            q *= 10
            lowercase__					:  Any          =							nr
        else:
            lowercase__					:  Optional[Any]          =							(2 * q + r) * l
            lowercase__					:  Optional[int]          =							(q * (7 * k) + 2 + (r * l)) // (t * l)
            q *= k
            t *= l
            l += 2
            k += 1
            lowercase__					:  Tuple          =							nn
            lowercase__					:  List[str]          =							nr
    return result

def      lowercase_							(     ):
    print(f'''{calculate_pi(50) = }''')
    import doctest

    doctest.testmod()


if __name__ == "__main__":
      main()




from typing import TYPE_CHECKING

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


UpperCamelCase    				=		{'''configuration_vit_hybrid''': ['''VIT_HYBRID_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''ViTHybridConfig''']}

try:
      if not is_torch_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      UpperCamelCase    				=		[
          '''VIT_HYBRID_PRETRAINED_MODEL_ARCHIVE_LIST''',
          '''ViTHybridForImageClassification''',
          '''ViTHybridModel''',
          '''ViTHybridPreTrainedModel''',
      ]

try:
      if not is_vision_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      UpperCamelCase    				=		['''ViTHybridImageProcessor''']


if TYPE_CHECKING:
      from .configuration_vit_hybrid import VIT_HYBRID_PRETRAINED_CONFIG_ARCHIVE_MAP, ViTHybridConfig

      try:
            if not is_torch_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .modeling_vit_hybrid import (
                VIT_HYBRID_PRETRAINED_MODEL_ARCHIVE_LIST,
                ViTHybridForImageClassification,
                ViTHybridModel,
                ViTHybridPreTrainedModel,
            )

      try:
            if not is_vision_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .image_processing_vit_hybrid import ViTHybridImageProcessor


else:
      import sys

      UpperCamelCase    				=		_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)



