

from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowerCamelCase__				:  List[str]													=  {
    '''configuration_wav2vec2_conformer''': [
        '''WAV2VEC2_CONFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP''',
        '''Wav2Vec2ConformerConfig''',
    ],
}


try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						lowerCamelCase__				:  str													=  [
						    '''WAV2VEC2_CONFORMER_PRETRAINED_MODEL_ARCHIVE_LIST''',
						    '''Wav2Vec2ConformerForAudioFrameClassification''',
						    '''Wav2Vec2ConformerForCTC''',
						    '''Wav2Vec2ConformerForPreTraining''',
						    '''Wav2Vec2ConformerForSequenceClassification''',
						    '''Wav2Vec2ConformerForXVector''',
						    '''Wav2Vec2ConformerModel''',
						    '''Wav2Vec2ConformerPreTrainedModel''',
						]

if TYPE_CHECKING:
						from .configuration_wavaveca_conformer import (
						    WAV2VEC2_CONFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP,
						    WavaVecaConformerConfig,
						)

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_wavaveca_conformer import (
												    WAV2VEC2_CONFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
												    WavaVecaConformerForAudioFrameClassification,
												    WavaVecaConformerForCTC,
												    WavaVecaConformerForPreTraining,
												    WavaVecaConformerForSequenceClassification,
												    WavaVecaConformerForXVector,
												    WavaVecaConformerModel,
												    WavaVecaConformerPreTrainedModel,
												)

else:
						import sys

						lowerCamelCase__				:  Tuple													=  _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)








"""simple docstring"""






def       UpperCamelCase					(			_lowerCAmelCase     :						int )				->			str:
	_UpperCAmelCase    :							Any									=					1
	_UpperCAmelCase    :							List[str]									=					0
	_UpperCAmelCase    :							str									=					1
	_UpperCAmelCase    :							Union[str, Any]									=					1
	_UpperCAmelCase    :							int									=					3
	_UpperCAmelCase    :							int									=					3
	_UpperCAmelCase    :							List[str]									=					limit
	_UpperCAmelCase    :							Optional[Any]									=					0

	_UpperCAmelCase    :							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
			_UpperCAmelCase    :							str									=					10 * (r - n * t)
			_UpperCAmelCase    :							List[Any]									=					((10 * (3 * q + r)) // t) - 10 * n
			q *= 10
			_UpperCAmelCase    :							int									=					nr
		else:
			_UpperCAmelCase    :							Any									=					(2 * q + r) * l
			_UpperCAmelCase    :							str									=					(q * (7 * k) + 2 + (r * l)) // (t * l)
			q *= k
			t *= l
			l += 2
			k += 1
			_UpperCAmelCase    :							List[Any]									=					nn
			_UpperCAmelCase    :							Optional[int]									=					nr
	return result
def       UpperCamelCase					(			)				->			None:
	print(f'''{calculate_pi(50 ) = }''' )
	import doctest

	doctest.testmod()


if __name__ == "__main__":
						main()





