class_docstr: Test behaviour of the from_numpy_lasso method
docstr: The learned structure should be acyclic
docstr_tok: ["The","learned","structure","should","be","acyclic"]
code: def test_no_cycles(self, train_data_idx):
      """
      The learned structure should be acyclic
      """
  
      g = from_numpy(train_data_idx.values, w_threshold=0.25)
      assert nx.algorithms.is_directed_acyclic_graph(g)
  
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 8 for calling the TestFromNumpy obj's underlying member method code with example usage: obj.test_no_cycles(train_data_idx) without return types