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: Number of columns of lagged data is not a multiple of those of input data should result in a Value Error.
docstr_tok: ["Number","of","columns","of","lagged","data","is","not","a","multiple","of","those","of","input","data","should","result","in","a","Value","Error","."]
code: def test_ncols_lagged_data_not_multiple_raises_error(self):
      """
      Number of columns of lagged data is not a multiple of those of input data should result in a Value Error.
      """
  
      with pytest.raises(
          ValueError,
          match="Number of columns of Xlags must be a multiple of number of columns of X",
      ):
          from_numpy_dynamic(np.zeros([5, 5]), np.zeros([5, 6]))
  
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 3 for calling the TestFromNumpyDynotears obj's underlying member method code with example usage: obj.test_ncols_lagged_data_not_multiple_raises_error() without return types