class_docstr: Test behaviour of the from_numpy_lasso method
docstr: If observations reliably show a==b and !a==!b then the relationship from a->b should be certain
docstr_tok: ["If","observations","reliably","show","a==b","and","!","a==","!","b","then","the","relationship","from","a-",">","b","should","be","certain"]
code: def test_certain_relationships_get_near_certain_weight(self):
      """If observations reliably show a==b and !a==!b then the relationship from a->b should be certain"""
  
      data = pd.DataFrame(
          [[1, 2] for _ in range(10)], columns=["a", "b"]
      )
      g = from_numpy(data.values, w_threshold=0.25)
      assert set(g.edges) == {(0, 1)}
      assert 1.9 <= g.get_edge_data(0, 1)["weight"] <= 2
  
imports: import logging
  import networkx
  import numpy
  import pandas
  import pytest
  import scipy.optimize
  from mock import patch
  from causalnex.structure import StructureModel
  from causalnex.structure.data_generators import generate_binary_data, generate_binary_dataframe, generate_continuous_dataframe, generate_count_dataframe, generate_structure
  from causalnex.structure.pytorch.notears import from_numpy, from_pandas
label_desc: Use image node_id 6 for calling the TestFromNumpy obj's underlying member method code with example usage: obj.test_certain_relationships_get_near_certain_weight() without return types