code: def test_weighted(self):
      g, checker = weighted_tree()
      bfw = SampledBreadthFirstWalk(g)
      walks = bfw.run(nodes=[0], n=10, n_size=[20, 20], weighted=True)
  
      checker(node_id for walk in walks for node_id in walk)
  
file_path: stellargraph/tests/data/test_breadth_first_walker.py
imports: import pandas
  import pytest
  import numpy
  from stellargraph.data.explorer import SampledBreadthFirstWalk
  from stellargraph.core.graph import StellarGraph, StellarDiGraph
  from ..test_utils.graphs import create_test_graph, tree_graph, example_graph_random, weighted_tree
label_desc: Use image node_id 10 for calling the TestBreadthFirstWalk obj's underlying member method code with example usage: obj.test_weighted() without return types