class_docstr: Test behaviour of the from_numpy_lasso method
docstr: Given a small data set that can be examined by hand, the structure should be deterministic
docstr_tok: ["Given","a","small","data","set","that","can","be","examined","by","hand",",","the","structure","should","be","deterministic"]
code: def test_expected_structure_learned(
      self, train_data_idx, train_model_idx
  ):
      """Given a small data set that can be examined by hand, the structure should be deterministic"""
  
      g = from_numpy(train_data_idx.values, w_threshold=0.16)
      assert set(g.edges) == set(train_model_idx.edges)
  
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 3 for calling the TestFromNumpy obj's underlying member method code with example usage: obj.test_expected_structure_learned(train_data_idx, train_model_idx) without return types