code: def nodes_to_tensor(nodes):
      # This function transform a set of nodes to node index tensor
      node_label_index = torch.tensor(list(nodes), dtype=torch.long)
      return node_label_index
  
imports: import copy
  import torch
  import random
  import argparse
  import numpy
  import networkx
  import torch.nn
  import torch.nn.functional
  from torch_geometric.nn import SAGEConv
  from torch.utils.data import DataLoader
  from torch_geometric.datasets import Planetoid
  from torch.nn import Sequential, Linear, ReLU
  from deepsnap.dataset import GraphDataset
  from deepsnap.graph import Graph
  from model import *
label_desc: Use image node_id 3 for calling a global function with example usage: nodes_to_tensor(nodes) and returns: node_label_index