class_docstr: Tests of GraphSAGELinkGenerator class
code: def test_weighted(self):
      g, checker = weighted_tree()
  
      gen = GraphSAGELinkGenerator(g, 7, [10, 5], weighted=True)
      samples = gen.flow([(0, 0)] * 10)
      checker(
          node_id
          for array in samples[0][0]
          for node_id in array.ravel()
      )
  
imports: import numpy
  import networkx
  import pytest
  import random
  from stellargraph.mapper import *
  from stellargraph.core.graph import *
  from stellargraph.data.unsupervised_sampler import *
  from ..test_utils.graphs import example_graph, example_graph_random, example_hin_1, repeated_features, weighted_tree
  from ..None import test_utils
label_desc: Use image node_id 11 for calling the Test_GraphSAGELinkGenerator obj's underlying member method code with example usage: obj.test_weighted() without return types