class_docstr: Test behaviour of the learn_dynamic_structure of `from_numpy_dynamic`
class_docstr_tok: ["Test","behaviour","of","the","learn_dynamic_structure","of","`","from_numpy_dynamic","`"]
docstr: If tabu relationships are set, the corresponding edges must not exist
docstr_tok: ["If","tabu","relationships","are","set",",","the","corresponding","edges","must","not","exist"]
code: def test_tabu_parents(self, data_dynotears_p2):
      """
      If tabu relationships are set, the corresponding edges must not exist
      """
  
      sm = from_numpy_dynamic(
          data_dynotears_p2["X"],
          data_dynotears_p2["Y"],
          tabu_parent_nodes=[1],
      )
      assert not [el for el in sm.edges if "1_lag" in el[0]]
  
imports: import re
  import networkx
  import numpy
  import pandas
  import pytest
  from causalnex.structure.dynotears import from_numpy_dynamic, from_pandas_dynamic
label_desc: Use image node_id 9 for calling the TestFromNumpyDynotears obj's underlying member method code with example usage: obj.test_tabu_parents(data_dynotears_p2) without return types