code: def test_walk_generation_single_root_node(self):
      g = create_test_graph()
      urw = UniformRandomWalk(g)
  
      nodes = ["0"]
      n = 1
      length = 1
      seed = 42
  
      subgraphs = urw.run(nodes=nodes, n=n, length=length, seed=seed)
      assert len(subgraphs[0]) == length
  
      length = 2
      subgraphs = urw.run(nodes=nodes, n=n, length=length, seed=seed)
      for subgraph in subgraphs:
          assert len(subgraph) == length
  
      length = 2
      n = 2
      subgraphs = urw.run(nodes=nodes, n=n, length=length, seed=seed)
      assert len(subgraphs) == n
      for subgraph in subgraphs:
          assert len(subgraph) == length
  
      n = 3
      subgraphs = urw.run(nodes=nodes, n=n, length=length, seed=seed)
      assert len(subgraphs) == n
      for subgraph in subgraphs:
          assert len(subgraph) == length
  
file_path: stellargraph/tests/data/test_uniform_random_walker.py
imports: import pytest
  import numpy
  from stellargraph.data.explorer import UniformRandomWalk
  from ..test_utils.graphs import create_test_graph, example_graph_random
label_desc: Use image node_id 2 for calling the TestUniformRandomWalk obj's underlying member method code with example usage: obj.test_walk_generation_single_root_node() without return types