code: def __init__(self, layer):
      self.version = torch.__version__
      import re
  
      self._kind = layer.kind()
      node_id = re.search(r"[\d]+", layer.__str__())
      self.id = node_id.group(0)
      super(PytorchGraphNode, self).__init__(layer)
      self.attrs = {k: layer[k] for k in layer.attributeNames()}
  
imports: from mmdnn.conversion.common.DataStructure.graph import GraphNode, Graph
  import torch
  import torch.autograd
  import torch.serialization
  import contextlib
  from torch.jit import _unique_state_dict
label_desc: Use image node_id 1 to create a new PytorchGraphNode object from inherited base classes: GraphNode with example: obj = PytorchGraphNode(layer)