class_docstr: Test behaviour of the from_numpy_lasso method
docstr: Tabu parent nodes should not have any outgoing edges
docstr_tok: ["Tabu","parent","nodes","should","not","have","any","outgoing","edges"]
code: def test_tabu_expected_parent_nodes(self, train_data_idx):
      """Tabu parent nodes should not have any outgoing edges"""
  
      tabu_p = [0, 3, 1]
      g = from_numpy(train_data_idx.values, tabu_parent_nodes=tabu_p)
      assert [p not in [e[0] for e in g.edges] for p in tabu_p]
  
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 10 for calling the TestFromNumpy obj's underlying member method code with example usage: obj.test_tabu_expected_parent_nodes(train_data_idx) without return types