
'''simple docstring'''





from doctest import testmod
from math import sqrt





def 							snake_case				(		UpperCAmelCase						)->      list:







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


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








'''simple docstring'''





from ...utils import (
    OptionalDependencyNotAvailable,
    is_torch_available,
    is_transformers_available,
    is_transformers_version,
)


try:
 if not (is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.27.0")):
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 from ...utils.dummy_torch_and_transformers_objects import (
     AudioLDMPipeline,
 )
else:
 from .pipeline_audioldm import AudioLDMPipeline






