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: Providing input data and lagged data with different number of rows should result in a Value Error.
docstr_tok: ["Providing","input","data","and","lagged","data","with","different","number","of","rows","should","result","in","a","Value","Error","."]
code: def test_nrows_data_mismatch_raises_error(self):
      """
      Providing input data and lagged data with different number of rows should result in a Value Error.
      """
  
      with pytest.raises(
          ValueError,
          match="Input data X and Xlags must have the same number of rows",
      ):
          from_numpy_dynamic(np.zeros([5, 5]), np.zeros([6, 5]))
  
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 2 for calling the TestFromNumpyDynotears obj's underlying member method code with example usage: obj.test_nrows_data_mismatch_raises_error() without return types