code: def test_benchmark_bfs_walk(self, benchmark, weighted):
      g = example_graph_random(n_nodes=100, n_edges=500)
      bfw = SampledBreadthFirstWalk(g)
  
      nodes = np.arange(0, 50)
      n = 5
      n_size = [5, 5]
  
      benchmark(
          lambda: bfw.run(
              nodes=nodes, n=n, n_size=n_size, weighted=weighted
          )
      )
  
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 9 for calling the TestBreadthFirstWalk obj's underlying member method code with example usage: obj.test_benchmark_bfs_walk(benchmark, weighted) without return types