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_multiple_tabu(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_edges=[
              (0, "a", "e"),
              (0, "a", "d"),
              (1, "b", "e"),
              (1, "d", "e"),
          ],
          tabu_child_nodes=["a", "b"],
          tabu_parent_nodes=["d"],
      )
  
      assert ("a_lag0", "e_lag0") not in sm.edges
      assert ("a_lag0", "d_lag0") not in sm.edges
      assert ("b_lag1", "e_lag0") not in sm.edges
      assert ("d_lag1", "e_lag0") not in sm.edges
      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]])
      assert not ([el for el in sm.edges if "d_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 10 for calling the TestFromPandasDynotears obj's underlying member method code with example usage: obj.test_multiple_tabu(data_dynotears_p3) without return types