
"""simple docstring"""







from doctest import testmod
from math import sqrt




def 			A_			(					lowercase      )     ->							list:


     """simple docstring"""







     UpperCAmelCase_						:    list[int]    					=  []
     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      )
               UpperCAmelCase_						:    str    					=  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)



"""simple docstring"""







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowercase_						    =					{"configuration_visual_bert": ["VISUAL_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP", "VisualBertConfig"]}

try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       lowercase_						    =					[
           "VISUAL_BERT_PRETRAINED_MODEL_ARCHIVE_LIST",
           "VisualBertForMultipleChoice",
           "VisualBertForPreTraining",
           "VisualBertForQuestionAnswering",
           "VisualBertForRegionToPhraseAlignment",
           "VisualBertForVisualReasoning",
           "VisualBertLayer",
           "VisualBertModel",
           "VisualBertPreTrainedModel",
       ]


if TYPE_CHECKING:
       from .configuration_visual_bert import VISUAL_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP, VisualBertConfig

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_visual_bert import (
                  VISUAL_BERT_PRETRAINED_MODEL_ARCHIVE_LIST,
                  VisualBertForMultipleChoice,
                  VisualBertForPreTraining,
                  VisualBertForQuestionAnswering,
                  VisualBertForRegionToPhraseAlignment,
                  VisualBertForVisualReasoning,
                  VisualBertLayer,
                  VisualBertModel,
                  VisualBertPreTrainedModel,
              )


else:
       import sys

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

