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: Nodes should have the format {var}_lag{l}
docstr_tok: ["Nodes","should","have","the","format","{","var","}","_lag","{","l","}"]
code: def test_naming_nodes(self, data_dynotears_p3):
      """
      Nodes should have the format {var}_lag{l}
      """
      sm = from_numpy_dynamic(
          data_dynotears_p3["X"], data_dynotears_p3["Y"]
      )
      pattern = re.compile(r"[0-5]_lag[0-3]")
  
      for node in sm.nodes:
          match = pattern.match(node)
          assert match
          assert match.group() == node
  
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 5 for calling the TestFromNumpyDynotears obj's underlying member method code with example usage: obj.test_naming_nodes(data_dynotears_p3) without return types