code: def test_benchmark_uniformrandommetapathwalk(self, benchmark):
      g = example_graph_random(n_nodes=50, n_edges=500, node_types=2)
      mrw = UniformRandomMetaPathWalk(g)
  
      # this should be made larger to be more realistic, when it is fast enough
      nodes = np.arange(0, 5)
      n = 5
      length = 5
      metapaths = [
          ["n-0", "n-1", "n-1", "n-0"],
          ["n-0", "n-1", "n-0"],
          ["n-0", "n-0"],
      ]
  
      benchmark(
          lambda: mrw.run(
              nodes=nodes, n=n, length=length, metapaths=metapaths
          )
      )
  
file_path: stellargraph/tests/data/test_metapath_walker.py
imports: import pandas
  import numpy
  import pytest
  from stellargraph.data.explorer import UniformRandomMetaPathWalk
  from stellargraph.core.graph import StellarGraph
  from ..test_utils.graphs import example_graph_random
label_desc: Use image node_id 7 for calling the TestMetaPathWalk obj's underlying member method code with example usage: obj.test_benchmark_uniformrandommetapathwalk(benchmark) without return types