docstr: Whenver a node is added, initialize its representation.
docstr_tok: ["Whenver","a","node","is","added",",","initialize","its","representation","."]
code: def _initialize_node_repr(self, g, node_type, graph_embed):
      """Whenver a node is added, initialize its representation."""
      num_nodes = g.num_nodes()
      hv_init = self.initialize_hv(
          torch.cat(
              [
                  self.node_type_embed(torch.LongTensor([node_type])),
                  graph_embed,
              ],
              dim=1,
          )
      )
      g.nodes[num_nodes - 1].data["hv"] = hv_init
      g.nodes[num_nodes - 1].data["a"] = self.init_node_activation
  
imports: import os
  import dgl
  import torch.nn
  import torch
  from functools import partial
  import torch.nn.functional
  from torch.distributions import Bernoulli
  from torch.distributions import Categorical
  import torch.utils.model_zoo
label_desc: Use image node_id 2 for calling the AddNode obj's underlying member method code with example usage: obj._initialize_node_repr(g, node_type, graph_embed) without return types