code: def divide_into(length, n):
      base_size, r = divmod(length, n)
  
      partition_length = [base_size] * n
  
      for idx in range(r):
          partition_length[idx] += 1
  
      return partition_length
  
imports: from collections.abc import Sequence
  from functools import singledispatch
label_desc: Use image node_id 1 for calling a global function with example usage: divide_into(length, n) and returns: partition_length