code: def do_cpu():
      import _dynet as C
  
      C.init()
      cm = C.Model()
      cpW = cm.add_parameters((1000, 1000))
      s = time.time()
      C.renew_cg()
      W = C.parameter(cpW)
      W = W * W * W * W * W * W * W
      z = C.squared_distance(W, W)
      z.value()
      z.backward()
      print("CPU time:", time.time() - s)
  
label_desc: Use image node_id 1 for calling a global function with example usage: do_cpu() without return types