



from typing import TYPE_CHECKING

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


_lowerCamelCase         =	{"""configuration_yoso""": ["""YOSO_PRETRAINED_CONFIG_ARCHIVE_MAP""", """YosoConfig"""]}

try:
      if not is_torch_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      _lowerCamelCase         =	[
          """YOSO_PRETRAINED_MODEL_ARCHIVE_LIST""",
          """YosoForMaskedLM""",
          """YosoForMultipleChoice""",
          """YosoForQuestionAnswering""",
          """YosoForSequenceClassification""",
          """YosoForTokenClassification""",
          """YosoLayer""",
          """YosoModel""",
          """YosoPreTrainedModel""",
      ]


if TYPE_CHECKING:
      from .configuration_yoso import YOSO_PRETRAINED_CONFIG_ARCHIVE_MAP, YosoConfig

      try:
            if not is_torch_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .modeling_yoso import (
                YOSO_PRETRAINED_MODEL_ARCHIVE_LIST,
                YosoForMaskedLM,
                YosoForMultipleChoice,
                YosoForQuestionAnswering,
                YosoForSequenceClassification,
                YosoForTokenClassification,
                YosoLayer,
                YosoModel,
                YosoPreTrainedModel,
            )


else:
      import sys

      _lowerCamelCase         =	_LazyModule(__name__, globals()["""__file__"""], _import_structure)











def 	__snake_case      (     _UpperCAmelCase							):
    __a					=							1
    __a					=							0
    __a					=							1
    __a					=							1
    __a					=							3
    __a					=							3
    __a					=							limit
    __a					=							0

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

            if decimal == counter:
                break

            counter += 1
            __a					=							10 * (r - n * t)
            __a					=							((10 * (3 * q + r)) // t) - 10 * n
            q *= 10
            __a					=							nr
        else:
            __a					=							(2 * q + r) * l
            __a					=							(q * (7 * k) + 2 + (r * l)) // (t * l)
            q *= k
            t *= l
            l += 2
            k += 1
            __a					=							nn
            __a					=							nr
    return result





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

    doctest.testmod()


if __name__ == "__main__":
 main()





