docstr: Edges whose weight is less than a defined threshold should be removed
docstr_tok: ["Edges","whose","weight","is","less","than","a","defined","threshold","should","be","removed"]
code: def test_remove_edges_below_threshold(self):
      """Edges whose weight is less than a defined threshold should be removed"""
  
      sm = StructureModel()
      strong_edges = [(1, 2, 1.0), (1, 3, 0.8), (1, 5, 2.0)]
      weak_edges = [(1, 4, 0.4), (2, 3, 0.6), (3, 5, 0.5)]
      sm.add_weighted_edges_from(strong_edges)
      sm.add_weighted_edges_from(weak_edges)
  
      sm.remove_edges_below_threshold(0.7)
  
      assert set(sm.edges(data="weight")) == set(strong_edges)
  
imports: import pytest
  from networkx.exception import NodeNotFound
  from causalnex.structure import StructureModel
label_desc: Use image node_id 1 for calling the TestStructureModelRemoveEdgesBelowThreshold obj's underlying member method code with example usage: obj.test_remove_edges_below_threshold() without return types