code: def to_inductive(data):
      data = data.clone()
      mask = data.train_mask
      data.x = data.x[mask]
      data.y = data.y[mask]
      data.train_mask = data.train_mask[mask]
      data.test_mask = None
      data.edge_index, _ = subgraph(
          mask,
          data.edge_index,
          None,
          relabel_nodes=True,
          num_nodes=data.num_nodes,
      )
      data.num_nodes = mask.sum().item()
      return data
  
file_path: ogb/examples/nodeproppred/products/graph_saint.py
imports: import argparse
  import torch
  from tqdm.auto import tqdm
  import torch.nn.functional
  from torch_geometric.data import GraphSAINTRandomWalkSampler, NeighborSampler
  from torch_geometric.nn import SAGEConv
  from torch_geometric.utils import subgraph
  from ogb.nodeproppred import PygNodePropPredDataset, Evaluator
  from logger import Logger
label_desc: Use image node_id 3 for calling a global function with example usage: to_inductive(data) and returns: data