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