



from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_torch_available,
)


__snake_case     :Tuple			       ={'configuration_unispeech': ['UNISPEECH_PRETRAINED_CONFIG_ARCHIVE_MAP', 'UniSpeechConfig']}

try:
				if not is_torch_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				__snake_case     :List[Any]			       =[
				    'UNISPEECH_PRETRAINED_MODEL_ARCHIVE_LIST',
				    'UniSpeechForCTC',
				    'UniSpeechForPreTraining',
				    'UniSpeechForSequenceClassification',
				    'UniSpeechModel',
				    'UniSpeechPreTrainedModel',
				]

if TYPE_CHECKING:
				from .configuration_unispeech import UNISPEECH_PRETRAINED_CONFIG_ARCHIVE_MAP, UniSpeechConfig

				try:
								if not is_torch_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .modeling_unispeech import (
								    UNISPEECH_PRETRAINED_MODEL_ARCHIVE_LIST,
								    UniSpeechForCTC,
								    UniSpeechForPreTraining,
								    UniSpeechForSequenceClassification,
								    UniSpeechModel,
								    UniSpeechPreTrainedModel,
								)

else:
				import sys

				__snake_case     :Any			       =_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)
'''simple docstring'''




def 							snake_case__				(     _A:   int					)       ->      list[int]:

		'''simple docstring'''


		if length <= 0 or not isinstance(_A ,  _A					):
				raise ValueError("""Length must be a positive integer."""					)
		return [n * (2 * n - 1) for n in range(_A					)]


if __name__ == "__main__":
						print(hexagonal_numbers(length=5))
						print(hexagonal_numbers(length=1_0))




