class_docstr: One layer of CARE-GNN.
class_docstr_tok: ["One","layer","of","CARE-GNN","."]
code: def _calc_distance(self, edges):
      # formula 2
      d = th.norm(
          th.tanh(self.MLP(edges.src["h"]))
          - th.tanh(self.MLP(edges.dst["h"])),
          1,
          1,
      )
      return {"d": d}
  
file_path: dgl/examples/pytorch/caregnn/model.py
imports: import dgl.function
  import numpy
  import torch
  import torch.nn
label_desc: Use image node_id 2 for calling the CAREConv obj's underlying member method code with example usage: obj._calc_distance(edges) and returns: dict