




'''simple docstring'''





from doctest import testmod
from math import sqrt





def UpperCAmelCase    (       UpperCAmelCase_						):
    _a				:							Optional[Any]							       =      []
    if num < 1:
        return facs
    facs.append(1						)
    if num == 1:
        return facs
    facs.append(lowercase__						)
    for i in range(2   ,	int(sqrt(lowercase__						)						) + 1						):
        if num % i == 0:  # If i is a factor of num
            facs.append(lowercase__						)
            _a				:							Optional[Any]							       =      num // i  # num//i is the other factor of num
            if d != i:  # If d and i are distinct
                facs.append(lowercase__						)  # we have found another factor
    facs.sort()
    return facs


if __name__ == "__main__":
  testmod(name='''factors_of_a_number''', verbose=True)






from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__SCREAMING_SNAKE_CASE	:							Optional[int]           =  {'''configuration_sew_d''': ['''SEW_D_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''SEWDConfig''']}

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		__SCREAMING_SNAKE_CASE	:							Dict           =  [
		    '''SEW_D_PRETRAINED_MODEL_ARCHIVE_LIST''',
		    '''SEWDForCTC''',
		    '''SEWDForSequenceClassification''',
		    '''SEWDModel''',
		    '''SEWDPreTrainedModel''',
		]

if TYPE_CHECKING:
		from .configuration_sew_d import SEW_D_PRETRAINED_CONFIG_ARCHIVE_MAP, SEWDConfig

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_sew_d import (
				    SEW_D_PRETRAINED_MODEL_ARCHIVE_LIST,
				    SEWDForCTC,
				    SEWDForSequenceClassification,
				    SEWDModel,
				    SEWDPreTrainedModel,
				)


else:
		import sys

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

