code: def partition_list(vertices, workers):
      batch_size = (len(vertices) - 1) // workers + 1
      part_list = []
      part = []
      count = 0
      for v1, nbs in enumerate(vertices):
          part.append((v1, nbs))
          count += 1
          if count % batch_size == 0:
              part_list.append(part)
              part = []
      if len(part) > 0:
          part_list.append(part)
      return part_list
  
label_desc: Use image node_id 3 for calling a global function with example usage: partition_list(vertices, workers) and returns: part_list