code: def do_gpu():
      import _dynet as G
      import sys
  
      sys.argv.append("--dynet-devices")
      sys.argv.append("GPU:0")
      G.init()
      gm = G.Model()
      gpW = gm.add_parameters((1000, 1000))
      s = time.time()
      G.renew_cg()
      W = G.parameter(gpW)
      W = W * W * W * W * W * W * W
      z = G.squared_distance(W, W)
      z.value()
      z.backward()
      print("GPU time:", time.time() - s)
  
label_desc: Use image node_id 2 for calling a global function with example usage: do_gpu() without return types