code: def test_benchmark_node_generator_large(benchmark):
      n_feat = 1024
      n_nodes = 200
      batch_size = 10
      num_samples = [20, 10]
  
      G = example_Graph_2(n_feat, 5000, 20000)
      nodes = list(G.nodes())
      nodes_to_sample = random.choices(nodes, k=n_nodes)
  
      generator = GraphSAGENodeGenerator(
          G, batch_size=batch_size, num_samples=num_samples
      )
  
      def read_generator():
          gen = generator.flow(nodes_to_sample)
  
          for ii in range(len(gen)):
              xf, xl = gen[ii]
          return xf, xl
  
      benchmark(read_generator)
  
file_path: stellargraph/tests/mapper/test_benchmark_generators.py
imports: import random
  from stellargraph.mapper import *
  from stellargraph.core.graph import *
  import numpy
  import networkx
  import pytest
  from ..test_utils.graphs import example_graph_random
label_desc: Use image node_id 7 for calling a global function with example usage: test_benchmark_node_generator_large(benchmark) and returns: xf,  xl