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: inter-slice edges must be {var}_lag{l} -> {var'}_lag0 , l > 0
docstr_tok: ["inter-slice","edges","must","be","{","var","}","_lag","{","l","}","-",">","{","var","'","}","_lag0",",","l",">","0"]
code: def test_inter_edges(self, data_dynotears_p3):
      """
      inter-slice edges must be {var}_lag{l} -> {var'}_lag0 , l > 0
      """
  
      sm = from_pandas_dynamic(
          pd.DataFrame(
              data_dynotears_p3["X"], columns=["a", "b", "c", "d", "e"]
          ),
          p=3,
      )
      for start, end in sm.edges:
          if int(start[-1]) > 0:
              assert int(end[-1]) == 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 4 for calling the TestFromPandasDynotears obj's underlying member method code with example usage: obj.test_inter_edges(data_dynotears_p3) without return types