code: def test_temporal_walks(temporal_graph):
      """
      valid time respecting walks (node -[time]-> node):
  
          1 -[2]-> 2 -[10]-> 4
          2 -[10]-> 4 -[12]-> 6
          3 -[2]-> 2 -[10]-> 4
          5 -[4]-> 4 -[12]-> 6
          1 -[2]-> 2 -[10]-> 4 -[12]-> 6
          3 -[2]-> 2 -[10]-> 4 -[12] -> 6
      """
      expected = {
          (1, 2, 4),
          (2, 4, 6),
          (3, 2, 4),
          (5, 4, 6),
          (1, 2, 4, 6),
          (3, 2, 4, 6),
      }
  
      rw = TemporalRandomWalk(temporal_graph)
      num_cw = 20  # how many walks to be sure we're getting valid temporal walks
  
      for walk in rw.run(
          num_cw=num_cw, cw_size=3, max_walk_length=4, seed=None
      ):
          assert tuple(walk) in expected
  
file_path: stellargraph/tests/data/test_temporal_random_walker.py
imports: import pandas
  import pytest
  import numpy
  import networkx
  from stellargraph.data.explorer import TemporalRandomWalk
  from stellargraph.core.graph import StellarGraph
label_desc: Use image node_id 2 for calling a global function with example usage: test_temporal_walks(temporal_graph) without return types