code: def test_fixed_random_seed(self):
      g = create_test_graph()
      _conv = g.node_ids_to_ilocs
      bfw = SampledBreadthFirstWalk(g)
  
      w0 = bfw.run(nodes=_conv([1]), n=1, n_size=[7], seed=42)
      w1 = bfw.run(nodes=_conv([1]), n=1, n_size=[7], seed=1010)
  
      assert len(w0) == len(w1)
      assert w0 != w1
  
      w0 = bfw.run(nodes=_conv([1]), n=1, n_size=[7], seed=42)
      w1 = bfw.run(nodes=_conv([1]), n=1, n_size=[7], seed=42)
  
      assert len(w0) == len(w1)
      assert w0 == w1
  
      w0 = bfw.run(nodes=_conv([1]), n=5, n_size=[12], seed=101)
      w1 = bfw.run(nodes=_conv([1]), n=5, n_size=[12], seed=101)
  
      assert len(w0) == len(w1)
      assert w0 == w1
  
      w0 = bfw.run(
          nodes=_conv([9, "self loner"]), n=1, n_size=[12], seed=101
      )
      w1 = bfw.run(
          nodes=_conv([9, "self loner"]), n=1, n_size=[12], seed=101
      )
  
      assert len(w0) == len(w1)
      assert w0 == w1
  
      w0 = bfw.run(
          nodes=_conv([1, "self loner", 4]), n=5, n_size=[12], seed=101
      )
      w1 = bfw.run(
          nodes=_conv([1, "self loner", 4]), n=5, n_size=[12], seed=101
      )
  
      assert len(w0) == len(w1)
      assert w0 == w1
  
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 8 for calling the TestBreadthFirstWalk obj's underlying member method code with example usage: obj.test_fixed_random_seed() without return types