class_docstr: Test for data-loading utilities.
class_docstr_tok: ["Test","for","data-loading","utilities","."]
docstr: Test that random walks have the right length and number.
docstr_tok: ["Test","that","random","walks","have","the","right","length","and","number","."]
code: def test_random_walks_random_graph(self):
      """Test that random walks have the right length and number."""
      graph = data_utils.load_random_graph()
      walk_length = 3
      n_walks_per_node = 1
  
      paths = graph.random_walk(
          walk_length=walk_length, n_walks_per_node=n_walks_per_node
      )
  
      result = [len(paths), len(paths[0])]
      expected = [len(graph.edges) * n_walks_per_node, walk_length + 1]
  
      self.assertAllClose(result, expected)
  
imports: import geomstats.backend
  import geomstats.datasets.utils
  from geomstats.geometry.euclidean import Euclidean
  from geomstats.geometry.hypersphere import Hypersphere
  from geomstats.geometry.landmarks import Landmarks
  from geomstats.geometry.spd_matrices import SPDMatrices
  from geomstats.geometry.special_euclidean import SpecialEuclidean
  from geomstats.geometry.special_orthogonal import SpecialOrthogonal
  from geomstats.information_geometry.beta import BetaDistributions
  from geomstats.test.test_case import TestCase, np_and_autograd_only
label_desc: Use image node_id 6 for calling the TestDatasets obj's underlying member method code with example usage: obj.test_random_walks_random_graph() without return types