code: def get_node_id(node):
      import re
  
      node_id = re.search(r"[\d]+", node.__str__())
      return node_id.group(0)
  
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 2 for calling the PytorchGraph obj's underlying member method code with example usage: obj.get_node_id(node) and returns: node_id