class_docstr: factor type parameter
      
class_docstr_tok: ["factor","type","parameter"]
code: def _get_prime_factors(self, n, repeat=True):
      prime_factors = []
  
      while n % 2 == 0:
          if 2 not in prime_factors:
              prime_factors.append(2)
          elif repeat:
              prime_factors.append(2)
          n = n / 2
  
      for i in range(3, int(math.sqrt(n)) + 1, 2):
          while n % i == 0:
              if i not in prime_factors:
                  prime_factors.append(i)
              elif repeat:
                  prime_factors.append(i)
              n = n / i
  
      if n > 2:
          prime_factors.append(int(n))
  
      return prime_factors
  
imports: import math
  import logging
  import copy
  import random
  import numpy
  from itertools import permutations, combinations
  import nni
  from nni.tuner import Tuner
label_desc: Use image node_id 10 for calling the Factor obj's underlying member method code with example usage: obj._get_prime_factors(n, repeat) and returns: prime_factors