docstr: Nodes should have the format {var}_lag{l}
docstr_tok: ["Nodes","should","have","the","format","{","var","}","_lag","{","l","}"]
code: def test_all_nodes_in_df(self, data_dynotears_p3):
      """
      Nodes should have the format {var}_lag{l}
      """
      df = pd.DataFrame(
          data_dynotears_p3["X"], columns=["a", "b", "c", "d", "e"]
      )
      df_dyno = DynamicDataTransformer(p=3).fit_transform(df)
  
      assert list(df_dyno.columns) == [
          el + "_lag" + str(i)
          for i in range(4)
          for el in ["a", "b", "c", "d", "e"]
      ]
  
file_path: causalnex/tests/structure/test_transformers.py
imports: import re
  import numpy
  import pandas
  import pytest
  from sklearn.exceptions import NotFittedError
  from causalnex.structure.transformers import DynamicDataTransformer
label_desc: Use image node_id 2 for calling the TestDynamicDataTransformer obj's underlying member method code with example usage: obj.test_all_nodes_in_df(data_dynotears_p3) without return types