code: def chunks(l, n):
      """Divide a list of nodes `l` in `n` chunks"""
      l_c = iter(l)
      while 1:
          x = tuple(itertools.islice(l_c, n))
          if not x:
              return
          yield x
  
imports: from multiprocessing import Pool
  import time
  import itertools
  import matplotlib.pyplot
  import networkx
label_desc: Use image node_id 1 for calling a global function with example usage: chunks(l, n) without return types