






def        lowerCamelCase__   (					__lowerCamelCase    :  int	)     ->   List[str]:
  __UpperCAmelCase							:			str     =						1
  __UpperCAmelCase							:			Optional[Any]     =						0
  __UpperCAmelCase							:			str     =						1
  __UpperCAmelCase							:			Optional[Any]     =						1
  __UpperCAmelCase							:			str     =						3
  __UpperCAmelCase							:			List[Any]     =						3
  __UpperCAmelCase							:			Any     =						limit
  __UpperCAmelCase							:			List[Any]     =						0

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

      if decimal == counter:
        break

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






def        lowerCamelCase__   (					)     ->   List[Any]:
  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


a	: Optional[int]      =				{
    "configuration_deformable_detr": ["DEFORMABLE_DETR_PRETRAINED_CONFIG_ARCHIVE_MAP", "DeformableDetrConfig"],
}

try:
       if not is_vision_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       a	: Optional[int]      =				["DeformableDetrFeatureExtractor"]
       a	: List[str]      =				["DeformableDetrImageProcessor"]

try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       a	: List[Any]      =				[
           "DEFORMABLE_DETR_PRETRAINED_MODEL_ARCHIVE_LIST",
           "DeformableDetrForObjectDetection",
           "DeformableDetrModel",
           "DeformableDetrPreTrainedModel",
       ]


if TYPE_CHECKING:
       from .configuration_deformable_detr import DEFORMABLE_DETR_PRETRAINED_CONFIG_ARCHIVE_MAP, DeformableDetrConfig

       try:
              if not is_vision_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .feature_extraction_deformable_detr import DeformableDetrFeatureExtractor
              from .image_processing_deformable_detr import DeformableDetrImageProcessor

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_deformable_detr import (
                  DEFORMABLE_DETR_PRETRAINED_MODEL_ARCHIVE_LIST,
                  DeformableDetrForObjectDetection,
                  DeformableDetrModel,
                  DeformableDetrPreTrainedModel,
              )

else:
       import sys

       a	: List[Any]      =				_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)


