code: def sample_based_line_example(self, nodes_idx, labels):
      self.line_examples = []
      Example = namedtuple("Example", ["node", "label"])
      for node, label in zip(nodes_idx, labels):
          self.line_examples.append(Example(node=node, label=label))
      print("Phase", self.phase)
      print("Len Examples", len(self.line_examples))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from __future__ import absolute_import
  from dataloader.base_dataloader import BaseDataGenerator
  from utils.to_undirected import to_undirected
  import ssl
  from pgl.contrib.ogb.nodeproppred.dataset_pgl import PglNodePropPredDataset
  from pgl.sample import graph_saint_random_walk_sample
  from ogb.nodeproppred import Evaluator
  import tqdm
  from collections import namedtuple
  import pgl
  import numpy
  import copy
label_desc: Use image node_id 2 for calling the ArxivDataGenerator obj's underlying member method code with example usage: obj.sample_based_line_example(nodes_idx, labels) without return types