code: def factorize_naive(n):
      """A naive factorization method. Take integer 'n', return list of
      factors.
      """
      if n < 2:
          return []
      factors = []
      p = 2
  
      while True:
          if n == 1:
              return factors
  
          r = n % p
          if r == 0:
              factors.append(p)
              n = n / p
          elif p * p >= n:
              factors.append(n)
              return factors
          elif p > 2:
              # Advance in steps of 2 over odd numbers
              p += 2
          else:
              # If p == 2, get to 3
              p += 1
      assert False, "unreachable"
  
label_desc: Use image node_id 1 for calling a global function with example usage: factorize_naive(n) and returns: list, factors, factors