docstr: Negative edges whose absolute value is greater than the defined threshold should not be removed
docstr_tok: ["Negative","edges","whose","absolute","value","is","greater","than","the","defined","threshold","should","not","be","removed"]
code: def test_negative_weights(self):
      """Negative edges whose absolute value is greater than the defined threshold should not be removed"""
  
      sm = StructureModel()
      strong_edges = [(1, 2, -3.0), (3, 1, 0.7), (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 2 for calling the TestStructureModelRemoveEdgesBelowThreshold obj's underlying member method code with example usage: obj.test_negative_weights() without return types