class_docstr: Test behaviour of the learn_dynamic_structure of `from_pandas_dynamic`
class_docstr_tok: ["Test","behaviour","of","the","learn_dynamic_structure","of","`","from_pandas_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_children(self, data_dynotears_p3):
      """
      If tabu relationships are set, the corresponding edges must not exist
      """
      sm = from_pandas_dynamic(
          pd.DataFrame(
              data_dynotears_p3["X"], columns=["a", "b", "c", "d", "e"]
          ),
          p=3,
          tabu_child_nodes=["c", "d"],
      )
      assert not ([el for el in sm.edges if "c_lag" in el[1]])
      assert not ([el for el in sm.edges if "d_lag" in el[1]])
      sm = from_pandas_dynamic(
          pd.DataFrame(
              data_dynotears_p3["X"], columns=["a", "b", "c", "d", "e"]
          ),
          p=3,
          tabu_child_nodes=["a", "b"],
      )
      assert not ([el for el in sm.edges if "a_lag" in el[1]])
      assert not ([el for el in sm.edges if "b_lag" in el[1]])
  
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 8 for calling the TestFromPandasDynotears obj's underlying member method code with example usage: obj.test_tabu_children(data_dynotears_p3) without return types