code: def count_consecutive_sums(n):
      start = 1
      curr_sum = count = 0
  
      for end in range(1, n + 1):
          curr_sum += end
  
          while curr_sum > n:
              # remove all numbers from the front
              curr_sum -= start
              start += 1
  
          if curr_sum == n:
              count += 1
  
      return count
  
label_desc: Use image node_id 1 for calling a global function with example usage: count_consecutive_sums(n) and returns: count