docstr: adding edges again should update the edges origin attr
docstr_tok: ["adding","edges","again","should","update","the","edges","origin","attr"]
code: def test_add_weighted_edges_from_multiple_times(self):
      """adding edges again should update the edges origin attr"""
  
      sm = StructureModel()
      edges = [(1, 2, 0.5), (2, 3, 0.5)]
      sm.add_weighted_edges_from(edges, origin="unknown")
      assert all(
          (u, v, "unknown") in sm.edges.data("origin")
          for u, v, _ in edges
      )
      sm.add_weighted_edges_from(edges, origin="learned")
      assert all(
          (u, v, "learned") in sm.edges.data("origin")
          for u, v, _ in edges
      )
  
imports: import pytest
  from networkx.exception import NodeNotFound
  from causalnex.structure import StructureModel
label_desc: Use image node_id 7 for calling the TestStructureModelAddWeightedEdgesFrom obj's underlying member method code with example usage: obj.test_add_weighted_edges_from_multiple_times() without return types