def load_subtensor(nfeat, labels, seeds, input_nodes):
    """
    Extracts features and labels for a set of nodes.
    """
    batch_inputs = nfeat[input_nodes]
    batch_labels = labels[seeds]
    return batch_inputs, batch_labels

    Extracts features and labels for a set of nodes.
    
examples/pytorch/ogb/ogbn-products/graphsage/main.py