code: def test_astar_multigraph(self):
      G = nx.MultiDiGraph(self.XG)
      G.add_weighted_edges_from(
          (u, v, 1000) for (u, v) in list(G.edges())
      )
      assert nx.astar_path(G, "s", "v") == ["s", "x", "u", "v"]
      assert nx.astar_path_length(G, "s", "v") == 9
  
imports: import pytest
  import networkx
  from networkx.utils import pairwise
label_desc: Use image node_id 5 for calling the TestAStar obj's underlying member method code with example usage: obj.test_astar_multigraph() without return types