code: def update_zm(self, node):
      src_x = node.data["src_x"]
      s = node.data["s"]
      rm = node.data["accum_rm"]
      z = torch.sigmoid(self.W_z(torch.cat([src_x, s], 1)))
      m = torch.tanh(self.W_h(torch.cat([src_x, rm], 1)))
      m = (1 - z) * s + z * m
      return {"m": m, "z": z}
  
file_path: dgl/examples/pytorch/jtnn/jtnn/nnutils.py
imports: import os
  import dgl
  import torch
  import torch.nn
label_desc: Use image node_id 2 for calling the GRUUpdate obj's underlying member method code with example usage: obj.update_zm(node) and returns: dict