



'''simple docstring'''



from maths.prime_factors import prime_factors



def   __lowerCAmelCase					(							lowerCamelCase   :						Optional[Any]					):






	'''simple docstring'''




	if not isinstance(_SCREAMING_SNAKE_CASE				,		_SCREAMING_SNAKE_CASE					):
		__lowerCAmelCase												=  f'''Input value of [number={number}] must be an integer'''
		raise TypeError(_SCREAMING_SNAKE_CASE					)
	if number < 1:
		raise ValueError("Input must be a positive integer"					)
	return -1 if len(prime_factors(_SCREAMING_SNAKE_CASE					)					) % 2 else 1


if __name__ == "__main__":
						import doctest

						doctest.testmod()




'''simple docstring'''



from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_sentencepiece_available,
    is_speech_available,
    is_torch_available,
)


lowerCAmelCase	:		Optional[Any]				=   {
    '''configuration_trocr''': ['''TROCR_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''TrOCRConfig'''],
    '''processing_trocr''': ['''TrOCRProcessor'''],
}


try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	lowerCAmelCase	:		List[str]				=   [
	    '''TROCR_PRETRAINED_MODEL_ARCHIVE_LIST''',
	    '''TrOCRForCausalLM''',
	    '''TrOCRPreTrainedModel''',
	]


if TYPE_CHECKING:
	from .configuration_trocr import TROCR_PRETRAINED_CONFIG_ARCHIVE_MAP, TrOCRConfig
	from .processing_trocr import TrOCRProcessor

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_trocr import TROCR_PRETRAINED_MODEL_ARCHIVE_LIST, TrOCRForCausalLM, TrOCRPreTrainedModel

else:
	import sys

	lowerCAmelCase	:		Optional[Any]				=   _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)