class_docstr: Unit tests for the :func:`~networkx.stochastic_graph` function.
code: def test_multidigraph(self):
      G = nx.MultiDiGraph()
      G.add_edges_from([(0, 1), (0, 1), (0, 2), (0, 2)])
      S = nx.stochastic_graph(G)
      d = {"weight": 0.25}
      assert sorted(S.edges(data=True)) == [
          (0, 1, d),
          (0, 1, d),
          (0, 2, d),
          (0, 2, d),
      ]
  
file_path: networkx/networkx/generators/tests/test_stochastic.py
imports: import pytest
  import networkx
label_desc: Use image node_id 4 for calling the TestStochasticGraph obj's underlying member method code with example usage: obj.test_multidigraph() without return types