



from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


SCREAMING_SNAKE_CASE     				=						{
    "configuration_megatron_bert": ["MEGATRON_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP", "MegatronBertConfig"],
}

try:
			if not is_torch_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			SCREAMING_SNAKE_CASE     				=						[
			    "MEGATRON_BERT_PRETRAINED_MODEL_ARCHIVE_LIST",
			    "MegatronBertForCausalLM",
			    "MegatronBertForMaskedLM",
			    "MegatronBertForMultipleChoice",
			    "MegatronBertForNextSentencePrediction",
			    "MegatronBertForPreTraining",
			    "MegatronBertForQuestionAnswering",
			    "MegatronBertForSequenceClassification",
			    "MegatronBertForTokenClassification",
			    "MegatronBertModel",
			    "MegatronBertPreTrainedModel",
			]

if TYPE_CHECKING:
			from .configuration_megatron_bert import MEGATRON_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP, MegatronBertConfig

			try:
						if not is_torch_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .modeling_megatron_bert import (
						    MEGATRON_BERT_PRETRAINED_MODEL_ARCHIVE_LIST,
						    MegatronBertForCausalLM,
						    MegatronBertForMaskedLM,
						    MegatronBertForMultipleChoice,
						    MegatronBertForNextSentencePrediction,
						    MegatronBertForPreTraining,
						    MegatronBertForQuestionAnswering,
						    MegatronBertForSequenceClassification,
						    MegatronBertForTokenClassification,
						    MegatronBertModel,
						    MegatronBertPreTrainedModel,
						)

else:
			import sys

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






def snake_case__  (			__SCREAMING_SNAKE_CASE )		->							str:
		UpperCAmelCase_						=				int(__SCREAMING_SNAKE_CASE )
		if decimal in (0, 1):  # Exit cases for the recursion
				return str(__SCREAMING_SNAKE_CASE )
		UpperCAmelCase_					,						UpperCAmelCase_						=				divmod(__SCREAMING_SNAKE_CASE			,     2 )
		return binary_recursive(__SCREAMING_SNAKE_CASE ) + str(__SCREAMING_SNAKE_CASE )







def snake_case__  (			__SCREAMING_SNAKE_CASE )		->							str:
		UpperCAmelCase_						=				str(__SCREAMING_SNAKE_CASE ).strip()
		if not number:
				raise ValueError("No input value was provided" )
		UpperCAmelCase_						=				"-" if number.startswith("-" ) else ""
		UpperCAmelCase_						=				number.lstrip("-" )
		if not number.isnumeric():
				raise ValueError("Input value is not an integer" )
		return f'''{negative}0b{binary_recursive(int(__SCREAMING_SNAKE_CASE ) )}'''


if __name__ == "__main__":
			from doctest import testmod

			testmod()

